Skip to content

Instantly share code, notes, and snippets.

@joshuacc
Last active August 29, 2015 13:56
Show Gist options
  • Save joshuacc/8847671 to your computer and use it in GitHub Desktop.
Save joshuacc/8847671 to your computer and use it in GitHub Desktop.
Common Linux config
source ~/.git-flow-completion.sh
export TERM=xterm-16color
source /etc/bash_completion.d/git
GIT_PS1_SHOWDIRTYSTATE=true
# colours
local black='\[\033[8;30m\]'
local red='\[\033[0;31m\]'
local green='\[\033[0;32m\]'
local yellow='\[\033[0;33m\]'
local blue='\[\033[0;34m\]'
local purple='\[\033[0;35m\]'
local cyan='\[\033[0;36m\]'
local grey='\[\033[0;37m\]'
local white='\[\033[1;37m\]'
local styleEnd='\[\033[0m\]'
local git_output='$(__git_ps1)'
export PS1="$blue\u@\h $cyan\w $purple$git_output \n$blue$ $styleEnd"
export EDITOR=emacs
export ACK_PAGER="less -R"
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
alias tm="tmuxinator"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment