From 5e95755a19facc2527cf4c008f0a3458493c1a98 Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Thu, 2 Jun 2011 20:29:16 -0500 Subject: [PATCH] Add another alias for clear and add some more aliases to alias-help --- aliases/general.aliases.bash | 64 +++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/aliases/general.aliases.bash b/aliases/general.aliases.bash index d91fbbb..1e7d445 100644 --- a/aliases/general.aliases.bash +++ b/aliases/general.aliases.bash @@ -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 } -- 2.17.1