Skip to content

Instantly share code, notes, and snippets.

@JackoPlane
Created May 30, 2017 01:15
Show Gist options
  • Save JackoPlane/004fc8c75e64c57b65f53a3f92d58585 to your computer and use it in GitHub Desktop.
Save JackoPlane/004fc8c75e64c57b65f53a3f92d58585 to your computer and use it in GitHub Desktop.
# PS1
## Default: "\h:\W \u\$"
#export PS1="\e[1;32m\][\u@\h:\W\u\$\[\e[0m\] "
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
}
export PS1="\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\e[1;35m\]\$(parse_git_branch)\[\e[m\] \[\e[1;31m\]\$\[\e[m\] \[\e[1;37m\]"
export PATH="$HOME/.fastlane/bin:$PATH"
## Colours!!
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# Bash completion..
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
LUNCHY_DIR=$(dirname `gem which lunchy`)/../extras
if [ -f $LUNCHY_DIR/lunchy-completion.bash ]; then
. $LUNCHY_DIR/lunchy-completion.bash
fi
archey -c -o
export PATH="/usr/local/opt/qt/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment