Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fellipeh/b80b649ec6f47a5e48be47cd33065e60 to your computer and use it in GitHub Desktop.
Save fellipeh/b80b649ec6f47a5e48be47cd33065e60 to your computer and use it in GitHub Desktop.
bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
# show git branch on terminal
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
#export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
export PS1="\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h:\[$(tput sgr0)\]\[\033[38;5;6m\][\w]\[$(tput sgr0)\]\[\033[38;5;34m\]\$(parse_git_branch)\[$(tput sgr0)\]\[\033[38;5;6m\]:\[$(tput sgr0)\]\[\033[38;5;15m\] "
export LSCOLORS=ExFxBxDxCxegedabagacad
# Alias
alias dev="cd ~/code"
alias devgit="cd ~/code/git"
export WORKON_HOME=$HOME/.venvs
export PROJECT_HOME=$HOME/code
source /usr/bin/virtualenvwrapper.sh
export CVS_RSH=ssh
export CVSROOT=:ext:fellipeh@cvs.opensource.ibm.com:/cvsroot/linuxc4eb
# PATHs
export PATH=~/.npm-global/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment