Skip to content

Instantly share code, notes, and snippets.

@vizjerai
Last active April 24, 2019 14:54
Show Gist options
  • Save vizjerai/81c466e9fddb1fd394332ff2eec74990 to your computer and use it in GitHub Desktop.
Save vizjerai/81c466e9fddb1fd394332ff2eec74990 to your computer and use it in GitHub Desktop.
bashrc
# Required to allow for git branch completion to work.
# brew install bash-completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# use NVIM
# brew install nvim
alias vi=nvim
# set default editor to NVIM
export EDITOR=nvim
export VISUAL=nvim
# ignore common large directories in grep
export GREP_OPTIONS='--exclude-dir=.git --exclude-dir=tmp'
# override common tool with useful arguments
alias grep='grep --color'
alias ls='ls -FG'
alias la='ls -lah'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment