Skip to content

Instantly share code, notes, and snippets.

@typpo
Created March 5, 2014 04:30
Show Gist options
  • Select an option

  • Save typpo/9361196 to your computer and use it in GitHub Desktop.

Select an option

Save typpo/9361196 to your computer and use it in GitHub Desktop.
.bash_aliases
alias l='ls'
alias ls='ls --color=auto'
alias ll='ls -l'
alias vi='vim'
alias rg='grep -r -I --exclude-dir="\.git" --exclude-dir="node_modules"'
if [ -x /usr/bin/colormake ]; then
alias make='colormake'
fi
function cd {
if (("$#" > 0)); then
if [ "$1" == "-" ]; then
popd > /dev/null
else
pushd "$@" > /dev/null
fi
else
cd $HOME
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment