-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
49 lines (43 loc) · 1.39 KB
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# High Intensty
IBlack="\[\033[0;90m\]" # Black
IRed="\[\033[0;91m\]" # Red
IGreen="\[\033[0;92m\]" # Green
IYellow="\[\033[0;93m\]" # Yellow
IBlue="\[\033[0;94m\]" # Blue
IPurple="\[\033[0;95m\]" # Purple
ICyan="\[\033[0;96m\]" # Cyan
IWhite="\[\033[0;97m\]" # White
# Symbols
Arrow=$'\xe2\x86\x92'
TopLeft=$'\xE2\x8C\x9C'
TurnedNotSign=$'\xE2\x8C\x99'
# Various variables you might want for your PS1 prompt instead
StartSymbol=$'\342\224\214\342\224\200'
EndSymbol=$'\342\224\224\342\224\200\342\224\200\u27a4'
PathShort="\w"
NewLine="\n"
User="\u@\h "
export PS1=$StartSymbol[$IBlue$User$Color_Off]-[$IYellow$PathShort]$Color_Off'$(\
if [ $? -eq 0 ]; then \
echo "'$IGreen' :) "; \
else \
echo "'$IRed' :( "; \
fi\
)''$(git branch &>/dev/null;\
if [ $? -eq 0 ]; then \
echo "$(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; \
if [ "$?" -eq "0" ]; then \
# @4 - Clean repository - nothing to commit
echo "'$IGreen'"$(__git_ps1 " (%s)"); \
else \
# @5 - Changes to working tree
echo "'$IRed'"$(__git_ps1 " {%s}"); \
fi) '$Color_Off'\n$EndSymbol "; \
else \
# @2 - Prompt when not in GIT repo
echo " '$Color_Off'\n$EndSymbol ";
fi)'
export PATH=$PATH:~/Scripts:~/Installs/gradle-1.6/bin:~/Installs/launch4j