Skip to content

Instantly share code, notes, and snippets.

@smotesko
Last active November 12, 2018 09:43
Show Gist options
  • Save smotesko/11182124 to your computer and use it in GitHub Desktop.
Save smotesko/11182124 to your computer and use it in GitHub Desktop.
My .bash_profile
# if .bash_profile on OS X is not sourced, do `ln -s .bash_profile .profile`
alias wow='git status'
export GIT_EDITOR=vim
export VISUAL=vim
export EDITOR=vim
export LC_ALL=C
# brew install bash-completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
@tiaro
Copy link

tiaro commented Nov 12, 2018

very nice gist!
I propose improvements:

alias nah='git reset --hard;git clean -df'
alias vi='vim'
# better locale, present on all EC2 amis, supports characters with umlauts, usually has no conflicts with C etc
export LC_ALL=en_US.UTF-8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment