-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
42 lines (33 loc) · 965 Bytes
/
.bashrc
File metadata and controls
42 lines (33 loc) · 965 Bytes
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
function timer_start {
timer=${timer:-$SECONDS}
}
function timer_stop {
timer_show=$(($SECONDS - $timer))
unset timer
}
trap 'timer_start' DEBUG
if [ "$PROMPT_COMMAND" == "" ]; then
PROMPT_COMMAND="timer_stop"
else
PROMPT_COMMAND="$PROMPT_COMMAND; timer_stop"
fi
#export PS1="\[\e[31m\]"$PS1"\[\e[m\]"
#export PS1="\[\033[38;5;162m\]\h\w${timer_show}s>\[$(tput sgr0)\]"
export PS1='\[\033[38;5;162m\]\h ${timer_show}s\w>\[$(tput sgr0)\]'
export PATH=$PATH:~/Library/Python/2.7/bin:~/bin
#python autocomplete in shell
PYTHONSTARTUP="/Users/`whoami`/.pyrc"
if [ -f $PYTHONSTARTUP ]; then
export PYTHONSTARTUP
else
PYTHONSTARTUP="/home/`whoami`/.pyrc"
if [ -f $PYTHONSTARTUP ]; then
export PYTHONSTARTUP
else
echo "Not able to set PYTHONSTARTUP"
fi
fi
alias gitd='git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r'
# some 'go' settings
export PATH=$PATH:/usr/local/opt/go/libexec/bin
export GOPATH=~/Dropbox/go/