bash/available/aliases.sh

20 lines
585 B
Bash
Raw Normal View History

2020-01-26 17:20:02 +01:00
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir -lh --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias dd='dd status=progress'
2021-08-26 16:15:03 +02:00
alias dd_status="watch -n5 'sudo kill -USR1 $(pgrep ^dd)'"
alias less='less -r'