Some aliases/settings in bash to make life simpler-n-interesting ;-)
Nothing special about them, just wanted to share'em with buddies.
# Force *interactive* cp and rm
alias cp='cp -i'
alias rm='rm -i'
# List only directories
alias dir='ls -Lla | grep ^d'
# Grep with colour!
alias grep='grep --color=auto'
# List all hidden files/dirs i.e. files starting with 'dot'
# but not '.' and '..'
alias l.='ls -d \.??*'
# Conveniences
alias path='echo -e ${PATH//:/\\n}'
alias du='du -h'
alias df='df -kh'
alias j='jobs -l'
# The 'ls' family (borrowed from ABS Guide's sample .bashrc)
alias ls='ls -hF --color' # Add colors for file type recognition
alias lx='ls -lXB' # Sort by extension
alias lk='ls -lSr' # Sort by size
alias la='ls -Al' # Show hidden files
alias lr='ls -lR' # Recursive ls
alias lt='ls -ltr' # Sort by date
alias lm='ls -al |more' # Pipe through 'more'
alias tree='tree -Cs' # Nice alternative to 'ls'
# And Now the *killer* setting!!! Set vi editing mode on shell prompt!
# This is *THE* best I can have in the shell!!!
set -o vi
Do share yours!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment