Add another alias for clear and add some more aliases to alias-help

pull/52/merge
Mark Szymanski 2011-06-02 20:29:16 -05:00
parent 9623fd442f
commit 5e95755a19
1 changed files with 34 additions and 30 deletions

View File

@ -15,31 +15,32 @@ then
alias ls="ls --color=always" alias ls="ls --color=always"
fi fi
alias c='clear' alias c = 'clear'
alias k='clear' alias k = 'clear'
alias cls = 'clear'
alias edit="$EDITOR" alias edit = "$EDITOR"
alias page="$PAGER" alias page = "$PAGER"
alias q="exit" alias q = "exit"
alias irc="$IRC_CLIENT" alias irc = "$IRC_CLIENT"
alias rb="ruby" alias rb = "ruby"
# Pianobar can be found here: http://github.com/PromyLOPh/pianobar/ # Pianobar can be found here: http://github.com/PromyLOPh/pianobar/
alias piano="pianobar" alias piano="pianobar"
alias ..='cd ..' # Go up one directory alias .. = 'cd ..' # Go up one directory
alias ...='cd ../..' # Go up two directories alias ... = 'cd ../..' # Go up two directories
alias -- -="cd -" # Go back alias -- - = "cd -" # Go back
# Shell History # Shell History
alias h='history' alias h = 'history'
# Tree # Tree
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" alias tree = "find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
# Directory # Directory
alias md='mkdir -p' alias md='mkdir -p'
@ -48,22 +49,25 @@ alias rd=rmdir
function aliases-help() { function aliases-help() {
echo "Generic Alias Usage" echo "Generic Alias Usage"
echo echo
echo " sl = ls" echo " sl = ls"
echo " ls = ls -G" echo " ls = ls -G"
echo " la = ls -AF" echo " la = ls -AF"
echo " ll = ls -al" echo " ll = ls -al"
echo " l = ls -a" echo " l = ls -a"
echo " c/k = clear" echo " c/k/cls = clear"
echo " .. = cd .." echo " .. = cd .."
echo " ... = cd ../.." echo " ... = cd ../.."
echo " - = cd -" echo " - = cd -"
echo " h = history" echo " h = history"
echo " md = mkdir -p" echo " md = mkdir -p"
echo " rd = rmdir" echo " rd = rmdir"
echo " editor = $EDITOR" echo " editor = $EDITOR"
echo " pager = $PAGER" echo " pager = $PAGER"
echo " piano = pianobar" echo " piano = pianobar"
echo " q = exit" echo " q = exit"
echo " irc = $IRC_CLIENT" echo " irc = $IRC_CLIENT"
echo echo " md = mkdir -p"
echo " rd = rmdir"
echo " rb = ruby"
echo
} }