X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Faliases;h=c508f6ffb97346c8a3184d6b9138b6354d29f628;hb=ad26dac43cbd7b8acb92d4f5ec7431d8022703ac;hp=8edbc3f1e41fcd5219e3b603f9467700422d5a66;hpb=f8b8f9c927e3a4463a9b2cc2e5d4680f09dde08f;p=config%2Fdotfiles.git diff --git a/shell/aliases b/shell/aliases index 8edbc3f..c508f6f 100644 --- a/shell/aliases +++ b/shell/aliases @@ -3,14 +3,15 @@ # Shortcuts for often used programs. -alias c='clear' -alias e='elinks' -alias g='git' -alias m='mutt' -alias p='less' # p for pager -alias s='mpc' # s for sound, m is already used -alias v='vim' -alias vi='vim' +alias c=clear +alias d=cd +alias e=elinks +alias g=git +alias l=ls +alias m=mutt +alias p=less # p for pager +alias s=mpc # s for sound, m is already used +alias v=vim # Improved ls which displays the files in columns (-C), visualizes @@ -37,7 +38,7 @@ fi # Main ls function, separated to prevent code duplication. ls_path=`which ls` my_ls() { - "$ls_path" -C -F $* 2>&1 | less + "$ls_path" -C -F "$@" 2>&1 | less } # Make sure there is no alias named ls as it causes problems with the # following ls function on (at least) bash 4.0.35. @@ -45,31 +46,31 @@ unalias ls 2> /dev/null # GNU ls with colors. if [ x$ls_color = xgnu ]; then ls() { - my_ls --color $* + my_ls --color "$@" } # Normal ls with colors. elif [ x$ls_color = xcli ]; then ls() { - CLICOLOR_FORCE=1 my_ls $* + CLICOLOR_FORCE=1 my_ls -G "$@" } # Simple ls with no colors. else ls() { - my_ls $* + my_ls "$@" } fi unset ls_color # Helper function to list all files. la() { - ls -a $* + ls -a "$@" } # Helper function to list the files in list format with access rights, etc. ll() { - ls -l $* + ls -l "$@" } # Helper function to list all files in list format with access rights, etc. lal() { - la -l $* + la -l "$@" }