Formatted baashrc. Added awake command.
This commit is contained in:
parent
eea9e4b747
commit
6eac101626
44
bashrc
44
bashrc
@ -72,27 +72,6 @@ xterm*|rxvt*)
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# enable color support of ls and also add handy aliases
|
|
||||||
if [ -x /usr/bin/dircolors ]; then
|
|
||||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
#alias dir='dir --color=auto'
|
|
||||||
#alias vdir='vdir --color=auto'
|
|
||||||
|
|
||||||
alias grep='grep --color=auto'
|
|
||||||
alias fgrep='fgrep --color=auto'
|
|
||||||
alias egrep='egrep --color=auto'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# some more ls aliases
|
|
||||||
alias disphost='export DISPLAY=:0.0'
|
|
||||||
alias ll='ls -alF'
|
|
||||||
alias la='ls -A'
|
|
||||||
alias l='ls -CF'
|
|
||||||
|
|
||||||
# Add an "alert" alias for long running commands. Use like so:
|
|
||||||
# sleep 10; alert
|
|
||||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
|
||||||
|
|
||||||
if ! shopt -oq posix; then
|
if ! shopt -oq posix; then
|
||||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
@ -110,7 +89,6 @@ function tsh(){
|
|||||||
|
|
||||||
[[ -s /home/stonewareslord/.autojump/etc/profile.d/autojump.sh ]] && source /home/stonewareslord/.autojump/etc/profile.d/autojump.sh
|
[[ -s /home/stonewareslord/.autojump/etc/profile.d/autojump.sh ]] && source /home/stonewareslord/.autojump/etc/profile.d/autojump.sh
|
||||||
export PATH=/home/stonewareslord/.autojump/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/stonewareslord/tmp/ucpp/ucpp/:/home/stonewareslord/tmp/ucpp/ucpp/:/home/stonewareslord/hitchhikers/bin/ucpp/ucpp:/home/stonewareslord/hitchhikers/bin/ucpp/ucpp
|
export PATH=/home/stonewareslord/.autojump/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/stonewareslord/tmp/ucpp/ucpp/:/home/stonewareslord/tmp/ucpp/ucpp/:/home/stonewareslord/hitchhikers/bin/ucpp/ucpp:/home/stonewareslord/hitchhikers/bin/ucpp/ucpp
|
||||||
alias frcbot='python build'
|
|
||||||
|
|
||||||
complete -cf sudo man
|
complete -cf sudo man
|
||||||
|
|
||||||
@ -125,23 +103,35 @@ fi
|
|||||||
#TODO: Doesn't work yet
|
#TODO: Doesn't work yet
|
||||||
#alias ovim='vim +SessionOpen\\ $@'
|
#alias ovim='vim +SessionOpen\\ $@'
|
||||||
#alias ogvim='gvim +SessionOpen\\ $@'
|
#alias ogvim='gvim +SessionOpen\\ $@'
|
||||||
|
# enable color support of ls and also add handy aliases
|
||||||
|
if [ -x /usr/bin/dircolors ]; then
|
||||||
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
#alias dir='dir --color=auto'
|
||||||
|
#alias vdir='vdir --color=auto'
|
||||||
|
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
fi
|
||||||
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
|
alias disphost='export DISPLAY=:0.0'
|
||||||
|
alias ll='ls -alF'
|
||||||
|
alias la='ls -A'
|
||||||
|
alias l='ls -CF'
|
||||||
alias logout='sudo pkill -u $USER'
|
alias logout='sudo pkill -u $USER'
|
||||||
alias fixsh='ssh-keygen -R'
|
alias fixsh='ssh-keygen -R'
|
||||||
alias tmux='tmux -2'
|
alias tmux='tmux -2'
|
||||||
alias less='less -r'
|
alias less='less -r'
|
||||||
alias tree='tree -C'
|
alias tree='tree -C'
|
||||||
alias grep="grep --color=auto"
|
alias grep="grep --color=auto"
|
||||||
|
|
||||||
alias skim="(head -5; tail -5) <"
|
alias skim="(head -5; tail -5) <"
|
||||||
|
|
||||||
# Show where you copy
|
|
||||||
alias cp="cp -v"
|
alias cp="cp -v"
|
||||||
alias mv="mv -v"
|
alias mv="mv -v"
|
||||||
|
|
||||||
alias la='ls -lah $LS_COLOR'
|
alias la='ls -lah $LS_COLOR'
|
||||||
function cl(){ cd "$@" && ls; }
|
function cl(){ cd "$@" && ls; }
|
||||||
|
|
||||||
alias dt='date "+%F %T"'
|
alias dt='date "+%F %T"'
|
||||||
|
alias awake='disphost; while true; do xdotool mousemove 0 0; sleep 60; done'
|
||||||
#HISTCONTROL=ignoredups
|
#HISTCONTROL=ignoredups
|
||||||
#PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo `dt` `pwd` $$ $USER "$(history 1)" >> ~/.bash_eternal_history && sed -i \'$ d\' ~/.bash_eternal_history'
|
#PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo `dt` `pwd` $$ $USER "$(history 1)" >> ~/.bash_eternal_history && sed -i \'$ d\' ~/.bash_eternal_history'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user