X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Faliases;h=f59801bba4c13b650c7f8e91eb50961bc69552fb;hb=dd7857bb9458713038436d8c07640307836850f4;hp=5484fc9aedf2ba358682978798efeb4bf49a880f;hpb=4b18a0ea15175ba29698f9ee6033853cf1158a49;p=config%2Fdotfiles.git diff --git a/shell/aliases b/shell/aliases index 5484fc9..f59801b 100644 --- a/shell/aliases +++ b/shell/aliases @@ -3,12 +3,15 @@ # Shortcuts for often used programs. -alias c='clear' -alias e='elinks' -alias g='git' -alias m='mutt' -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 @@ -48,7 +51,7 @@ if [ x$ls_color = xgnu ]; then # 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 @@ -59,11 +62,15 @@ fi unset ls_color # Helper function to list all files. la() { - ls -a $* + ls -a "$@" } -# Helper function to list all files in list format with access rights, etc. +# Helper function to list the files in list format with access rights, etc. ll() { - la -l $* + ls -l "$@" +} +# Helper function to list all files in list format with access rights, etc. +lal() { + la -l "$@" }