Skip to content

Instantly share code, notes, and snippets.

View vasigorc's full-sized avatar
🇨🇦
Working from home

Vasile Gorcinschi vasigorc

🇨🇦
Working from home
View GitHub Profile
@vasigorc
vasigorc / .bashrc
Created April 12, 2019 02:04 — forked from tijptjik/.bashrc
mTypeHK .bashrc with Fedora // Git aliases . Put it in your home directory
#!/bin/bash
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1='\[\e[1;34m\]\u\[\e[m\] \[\e[0;32m\]\w\[\e[m\] $(parse_git_branch) \[\e[1;34m\]\$ \[\e[m\]\[\e[0;37m\]'
#PS1='\[\e[1;34m\]\u\[\e[m\] \[\e[0;32m\]\w\[\e[m\] \[\e[1;34m\]\$ \[\e[m\]\[\e[0;37m\]'
# If not running interactively, don't do anything