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