Skip to content

Instantly share code, notes, and snippets.

@ivyleavedtoadflax
Created November 28, 2016 11:41
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 ivyleavedtoadflax/096a4881b74b9c1da7bc2f98a92be485 to your computer and use it in GitHub Desktop.
Save ivyleavedtoadflax/096a4881b74b9c1da7bc2f98a92be485 to your computer and use it in GitHub Desktop.
Make OSX terminal behave a little better
#export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
# Shorten and colour command prompt
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u:\W\$ '
fi
export color_prompt=yes
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Aliases
alias ls='ls -gfh'
alias rstudio='sudo open -a Rstudio'
# added by Anaconda3 4.1.1 installer
export PATH="/Users/matthewupson/anaconda3/bin:$PATH"
# Setup pinentry and gpg-agent to access gpg keys
# See https://github.com/pstadler/keybase-gpg-github
if test -f ~/.gnupg/.gpg-agent-info -a -n "$(pgrep gpg-agent)"; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
GPG_TTY=$(tty)
export GPG_TTY
else
eval $(gpg-agent --daemon --write-env-file ~/.gnupg/.gpg-agent-info)
fi
# Set up autocomplete for MAC OSX
set show-all-if-ambiguous on
set completion-ignore-case on
set TAB: menu-complete
# Setup git autocomplete
test -f ~/.git-completion.bash && . $_
# Solve problem with losing colours under tmux
alias tmux="TERM=screen-256color-bce tmux"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment