Skip to content

Instantly share code, notes, and snippets.

@t0nylombardi
Created February 20, 2015 16:36
Show Gist options
  • Save t0nylombardi/cab0e30ddf36909ec919 to your computer and use it in GitHub Desktop.
Save t0nylombardi/cab0e30ddf36909ec919 to your computer and use it in GitHub Desktop.
# 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 afind='ack-grep -il'
alias c='clear'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment