aliases 802 B

12345678910111213141516171819202122232425
  1. # You may uncomment the following lines if you want `ls' to be colorized:
  2. export LS_OPTIONS='--color=always'
  3. eval "`dircolors`"
  4. alias ls='ls $LS_OPTIONS -lsh'
  5. alias la='ls $LS_OPTIONS -lsah'
  6. alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e
  7. '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'''
  8. # Some more alias to avoid making mistakes:
  9. alias rm='rm -i'
  10. alias cp='cp -i'
  11. alias mv='mv -i'
  12. ## Colorize the grep command output for ease of use (good for log files)##
  13. alias grep='grep --color=auto'
  14. alias egrep='egrep --color=auto'
  15. alias fgrep='fgrep --color=auto'
  16. # alias grep='grep --color=tty -d skip'
  17. alias df='df -h' # human-readable sizes
  18. alias free='free -m' # show sizes in MB
  19. alias mysqlr='mysql -u root -p'
  20. alias df="df -kTh"