From 5e0e86f70543890df3daf8e551aa6a319278c3f9 Mon Sep 17 00:00:00 2001 From: Robert R Evans Date: Sat, 2 Oct 2010 15:29:23 -0700 Subject: [PATCH] Added a generic aliases help --- bash_it.sh | 2 ++ lib/aliases.bash | 21 ++++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/bash_it.sh b/bash_it.sh index 3f52aba..78e32be 100644 --- a/bash_it.sh +++ b/bash_it.sh @@ -60,5 +60,7 @@ function bash-it() { echo echo " rails-help This will list out all the aliases you can use with rails." echo " git-help This will list out all the aliases you can use with git." + echo " aliases-help Generic list of aliases." + echo } \ No newline at end of file diff --git a/lib/aliases.bash b/lib/aliases.bash index 4152374..49e89ce 100644 --- a/lib/aliases.bash +++ b/lib/aliases.bash @@ -20,4 +20,23 @@ alias h='history' # Directory alias md='mkdir -p' alias rd=rmdir -alias d='dirs -v' \ No newline at end of file +alias d='dirs -v' + +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 " d = dirs -v" + echo +} \ No newline at end of file -- 2.17.1