-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_bashprofile
21 lines (16 loc) · 1.1 KB
/
custom_bashprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Set location where terminal looks for binaries
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
# Set sublime to be the default editor, you will need to create a symbolic link to Sublime Text: "sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl"
export EDITOR='subl -w'
# Setting up terminal colors:
# - Select "Pro" theme in terminal preferences, then
# - Copy the following into ~/.bash_profile or ~/.bashsrc,
# Finally execute source ~/.bash_profile to apply the changes
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
#PS1='[\u@\h \W]\$ ‘ # Default
export PS1="\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]\[\e[37m\]@\h\[\e[m\] \[$(tput sgr0)\]\[\033[38;5;8m\]\d\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;8m\]\T\[$(tput sgr0)\]\[\033[38;5;15m\]\n\[$(tput sgr0)\]\[\033[38;5;6m\][\w]\[$(tput sgr0)\]\[\033[38;5;15m\]\\[\e[37m\]\033[32m\]\$(parse_git_branch)\[\033[00m\]$\[\e[m\] \[$(tput sgr0)\]"
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced