Skip to content

Instantly share code, notes, and snippets.

@kjkta
Last active June 17, 2019 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjkta/83a009831a75e506a8ea5e97861d50ce to your computer and use it in GitHub Desktop.
Save kjkta/83a009831a75e506a8ea5e97861d50ce to your computer and use it in GitHub Desktop.
Init - backing up this time lol
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Brew
export PATH=/usr/local/bin:$PATH
# Prompt
# Download from https://raw.githubusercontent.com/git/git/8976500cbbb13270398d3b3e07a17b8cc7bff43f/contrib/completion/git-prompt.sh
source ~/.git-prompt.sh
export PS1='\u \W$(__git_ps1 " (%s)")\$ '
# Postgres
alias pg_start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
alias pg_stop="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log stop"
# Git auto-complete
# First follow the instructions https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment