bashrc 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. # ~/.bashrc: executed by bash(1) for non-login shells.
  2. # Note: PS1 and umask are already set in /etc/profile. You should not
  3. # need this unless you want different defaults for root.
  4. # PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
  5. # umask 022
  6. # You may uncomment the following lines if you want `ls' to be colorized:
  7. export LS_OPTIONS='--color=always'
  8. eval "`dircolors`"
  9. alias ls='ls $LS_OPTIONS -lsh'
  10. alias la='ls $LS_OPTIONS -lsah'
  11. alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e
  12. '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'''
  13. # Some more alias to avoid making mistakes:
  14. alias rm='rm -i'
  15. alias cp='cp -i'
  16. alias mv='mv -i'
  17. ## Colorize the grep command output for ease of use (good for log files)##
  18. alias grep='grep --color=auto'
  19. alias egrep='egrep --color=auto'
  20. alias fgrep='fgrep --color=auto'
  21. # alias grep='grep --color=tty -d skip'
  22. alias df='df -h' # human-readable sizes
  23. alias free='free -m' # show sizes in MB
  24. alias mysqlr='mysql -u root -p'
  25. alias df="df -kTh"