X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Faliases;h=994b031ee163e3ed9204940a01d01445c2a0f38c;hb=bfb34890215fb6e326e9e7beed5439c3b5a3b72e;hp=cb2af4b8c024a55b7fc35c63de2588d07fb827db;hpb=0b47efd8a633ce89b988f5cd39410b8cfe3c37ae;p=config%2Fdotfiles.git diff --git a/shell/aliases b/shell/aliases index cb2af4b..994b031 100644 --- a/shell/aliases +++ b/shell/aliases @@ -3,12 +3,13 @@ # 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 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 # Improved ls which displays the files in columns (-C), visualizes @@ -48,7 +49,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 @@ -61,12 +62,22 @@ unset ls_color la() { 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() { + ls -l $* +} +# Helper function to list all files in list format with access rights, etc. +lal() { la -l $* } +# Make going up directories simple. +alias ..='cd ..' +alias ...='cd ../..' +alias ....='cd ../../..' +alias .....='cd ../../../..' + # I sometimes confuse editor and shell, print a warning to prevent I exit the # shell. alias :q='echo "This is not Vim!" >&2'