Folder to easyly add some customisation to bash
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

aliases.sh 603B

1234567891011121314151617181920
  1. # enable color support of ls and also add handy aliases
  2. if [ -x /usr/bin/dircolors ]; then
  3. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  4. alias ls='ls --color=auto'
  5. alias dir='dir -lh --color=auto'
  6. #alias vdir='vdir --color=auto'
  7. alias grep='grep --color=auto'
  8. alias fgrep='fgrep --color=auto'
  9. alias egrep='egrep --color=auto'
  10. fi
  11. # some more ls aliases
  12. alias ll='ls -alF'
  13. alias la='ls -A'
  14. alias l='ls -CF'
  15. alias dd='dd status=progress'
  16. alias dd_status="watch -n5 'sudo kill -USR1 $(pgrep ^dd)'"
  17. alias less='less -r'
  18. alias ssh='ssh -X'