My Debian Aliases


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # Alias definitions.
  2. # You may want to put all your additions into a separate file like
  3. # ~/.bash_aliases, instead of adding them here directly.
  4. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  5.  
  6. #if [ -f ~/.bash_aliases ]; then
  7. # . ~/.bash_aliases
  8. #fi
  9.  
  10. # enable color support of ls and also add handy aliases
  11. if [ "$TERM" != "dumb" ]; then
  12. eval "`dircolors -b`"
  13. alias ls='ls --color=auto'
  14. #alias dir='ls --color=auto --format=vertical'
  15. #alias vdir='ls --color=auto --format=long'
  16. fi
  17.  
  18. # some more ls aliases
  19. alias ll='ls -l'
  20. alias la='ls -A'
  21. alias l='ls -CF'
  22. alias sud='sudo apt-get update'
  23. alias sug='sudo apt-get upgrade'
  24. alias last='last | less'
  25. alias rq='sudo repquota -s /home'
  26.  
  27. # enable programmable completion features (you don't need to enable
  28. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  29. # sources /etc/bash.bashrc).
  30. if [ -f /etc/bash_completion ]; then
  31. . /etc/bash_completion
  32. fi

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.