aliases 838 B

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