Skip to content

Instantly share code, notes, and snippets.

@cathal
cathal / .bash_profile.sh
Created November 13, 2016 17:42
SOCKS Proxied SSH
# append the following to bash profile
# ~/.bash_profile or #~/.bashrc
export PATH="$PATH:~/bin"
@cathal
cathal / git_ps1.sh
Last active August 29, 2015 14:27
PS1 prompt that includes git branch + colour code for committed/uncommitted changes
# Customise BASH PS1 prompt to show current GIT branch, colour coded to inform user if there are any uncomitted changes.
# by Cathal Browne - http://ninjazebra.com
# Inspired by http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt
### Detects if your current directory is a git repository
### If a git repository
#### Displays current branch name:
##### in green if no uncommited changes