-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux_bash_profile
45 lines (29 loc) · 1.58 KB
/
linux_bash_profile
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
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
# Set prompt: " username@hostname/directory/tree $ " (with colors)
export PS1="\[\e[32m\]\u\[\e[0m\]\[\e[32m\]@\h\[\e[36m\]\w \[\e[33m\]\$(parse_git_branch)\[\e[0m\]\[\e[33m\]\$ \[\e[37m\]"
#export PS1="\[\e[32;1m\]\u\[\e[0m\]\[\e[32m\]@\h\[\e[36m\]\w \[\e[33m\]\$(parse_git_branch)\[\e[0m\]\[\e[33m\]\$ \e[37;40m"
#export PS1="\[\e[32;1m\]\u\[\e[0m\]\[\e[32m\]@\h\[\e[36m\]\w \[\e[33m\]\$"
#export PS1='\u@\h \[\033[1;33m\]\w\[\033[0m\]$(parse_git_branch)$ '
set -o vi
export EDITOR=vim
#locale: Cannot set LC_CTYPE to default locale: No such file or directory
#locale: Cannot set LC_MESSAGES to default locale: No such file or directory
#locale: Cannot set LC_COLLATE to default locale: No such file or directory
export LC_CTYPE="en_US.utf8"
export LC_MESSAGES="en_US.utf8"
export LC_COLLATE=C
export LANG="en_US.utf8"
alias ls='ls --color'
alias l='ls --color -ltr'
alias a='git add *;git commit;git push'
alias s='git status'
alias grep='grep --color'
declare -x PATH="$PATH:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:~/scripts"
[[ -s "/Users/davealbert/.rvm/scripts/rvm" ]] && source "/Users/davealbert/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export IRCNAME="I have nothing to say here."
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting