Last active
February 14, 2016 13:08
-
-
Save carlohcs/c0091ed009e36e51e6ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup a better visual information at terminal line | |
HOST='\[\033[02;36m\]\h'; HOST=' '$HOST | |
TIME='\[\033[01;31m\]\t \[\033[01;32m\]' | |
LOCATION=' \[\033[01;34m\]`pwd | sed "s#\(/[^/]\{1,\}/[^/]\{1,\}/[^/]\{1,\}/\).*\(/[^/]\{1,\}/[^/]\{1,\}\)/\{0,1\}#\1_\2#g"`' | |
BRANCH=' \[\033[00;33m\]$(git_branch)\[\033[00m\]\n\$ ' | |
PS1=$TIME$USER$HOST$LOCATION$BRANCH | |
PS2='\[\033[01;36m\]>' | |
# Automplete for linux commands | |
if [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My ~/.bashrc file
This code add custom configurations to the bash.
You can see some features in above image.