ohmyzsh/lib/aliases.zsh
Mitchel Humpherys 7fa86993c3 prevent preventing headaches to prevent headaches
There are some verbose aliases for rm et al that are supposed to
"prevent headaches". However, the real headache is when you recursively
rm a directory with a million files in it and have to sit through all of
that output. Fix this by sticking to the tried-and-true default of
non-verbose mode. Users can always ask for verbose output when they want
it.
2014-03-17 13:59:15 -07:00

36 lines
650 B
Bash

# Push and pop directories on directory stack
alias pu='pushd'
alias po='popd'
# Basic directory operations
alias ...='cd ../..'
alias -- -='cd -'
# Super user
alias _='sudo'
alias please='sudo'
#alias g='grep -in'
# Show history
if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
then
alias history='fc -fl 1'
elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
then
alias history='fc -El 1'
elif [ "$HIST_STAMPS" = "yyyy-mm-dd" ]
then
alias history='fc -il 1'
else
alias history='fc -l 1'
fi
# List direcory contents
alias lsa='ls -lah'
alias l='ls -lah'
alias ll='ls -lh'
alias la='ls -lAh'
alias sl=ls # often screw this up
alias afind='ack-grep -il'