This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local user='%{$fg[magenta]%}%n%{$reset_color%}' | |
local pwd='%{$fg[blue]%}%~%{$reset_color%}' | |
local tme='%{$fg[red]%}⌚ %*%{$reset_color%}' | |
local rvm='' | |
if which rvm-prompt &> /dev/null; then | |
rvm='%{$fg[green]%}‹$(rvm-prompt i v g)›%{$reset_color%}' | |
else | |
if which rbenv &> /dev/null; then | |
rvm='%{$fg[green]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id=$(xrandr | sed -n 2p | awk '{print $1}') | |
read -p "Enter turned on seconds : " on | |
read -p "Enter turned off seconds : " off | |
while [ 1 ] | |
do | |
xrandr --output $id --brightness 1 | |
sleep $on | |
xrandr --output $id --brightness 0 |
NewerOlder