Skip to content

Instantly share code, notes, and snippets.

@dundee
dundee / ssh_config
Created August 5, 2011 12:18
SSH config file (~/.ssh/config)
Host milde
HostName milde.cz
User dundee
Port 1080
Host nagios
HostName nagios.milde.cz
User dundee
Port 1080
IdentityFile ~/.ssh/alternative
@dundee
dundee / .bashrc
Last active September 25, 2015 15:37 — forked from lexaurin/gist:943888
Shows actual git branch on command prompt
export PS1="$PS1\$(\
export GIT_BRANCH=\"\$(git branch --no-color 2>/dev/null | grep '*' | cut -d\" \" -f2-)\"; \
if [ -n \"\$GIT_BRANCH\" ] ; then \
echo -en \"\[\033[01;33m\]\"\$GIT_BRANCH \"> \[\033[00m\]\"; \
fi \
)"