Created
March 5, 2014 04:30
-
-
Save typpo/9361196 to your computer and use it in GitHub Desktop.
.bash_aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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