Added formatted alias index function. Call 'git_aliases' to remind yourself of git shortcuts.
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
# --------------------------------------------------------------------
|
||||
# _alias() ignores errors if alias is not defined. (from lib/scm_breeze.sh)
|
||||
|
||||
# Print formatted alias index
|
||||
list_aliases() { alias -p | grep "$*" --color=never | sed -e 's/alias //' -e "s/='/::/" -e "s/'//g" | awk -F "::" '{ printf "\033[1;36m%15s \033[2;37m=>\033[0m %-8s\n",$1,$2}'; }
|
||||
alias git_aliases="list_aliases git"
|
||||
|
||||
|
||||
_alias $git_alias='git'
|
||||
|
||||
# SCM Breeze functions
|
||||
|
||||
Reference in New Issue
Block a user