-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile_linux
78 lines (60 loc) · 2.61 KB
/
bash_profile_linux
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# Some example alias instructions
# If these are enabled they will be used instead of any instructions
# they may mask. For example, alias rm='rm -i' will mask the rm
# application. To override the alias instruction use a \ before, ie
# \rm will call the real rm not the alias.
#
# Interactive operation...
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
alias ls='ls --color --show-control-chars --time-style=long-iso'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'
alias ll='ls -l' # long list
alias la='ls -al' # all but . and ..
alias grep='grep --color=auto'
alias df='df -h'
alias du='du -h'
## ==================== misc
unset USERNAME
export PS1="\[\033[01;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[01;32m\]V\"; else echo \"\[\033[01;31m\]X\"; fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\H'; fi)\[\033[01;34m\] \w \$\[\033[00m\] "
PS1="\[\033[01;37m\]\$? \$(if [[ \$? == 0 ]]; then echo \"\[\033[01;32m\]V \[\033[00m\]\"\$(date '+%Y-%m-%d %H:%M:%S'); else echo \"\[\033[01;31m\]X \[\033[00m\]\"\$(date '+%Y-%m-%d %H:%M:%S'); fi) $(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\H'; fi)\[\033[01;34m\] \w \n\$\[\033[00m\] "
# git auto completion file
source ~/git-completion.bash
## ==================== path
# basic path, tool chain
PATH=$HOME/.jumbo/opt/sun-java7/bin:$HOME/.jumbo/bin/core_perl:$HOME/.jumbo/bin:/home/tools/tools/svn/1.6.5/64/bin:/home/tools/tools/scmtools/usr/bin:/home/tools/tools/../bin/64/:/home/tools/tools/maven/apache-maven-2.2.0/bin:/home/tools/tools/ant/apache-ant-1.6.5/bin:/home/tools/tools/ant/apache-ant-1.7.1/bin:/home/tools/tools/php/5.2.17/64/bin:$HOME/.jumbo/bin/vendor_perl:$HOME/tools/hadoop/hadoop/bin:$PATH
PATH=$HOME/.jumbo/opt/coreutils/bin/:$PATH
PATH=$HOME/bin:$PATH
export PATH
# User specific environment and startup programs
# ccover
# PATH=$HOME/app/ccover-8.9/bin:$PATH
export COVBUILDZONE=`date +%s%N`
# golang
export GOROOT=~/tools/go
if [ "x$GOPATH" == "x" ]; then
export GOPATH=~/dev/qns/pubsub:~/dev/qns/pubsub/lib
else
export GOPATH=~/dev/qns/pubsub:~/dev/qns/pubsub/lib:$GOPATH
fi
# export JAVA_HOME=/java/jdk1.6.0_06
# bcloud
PATH=$PATH:$HOME/.BCloud/bin:$HOME/.build_submitter/usr/bin
export PATH
# hosts
export HOSTALIASES=$HOME/.hosts
# python
PYTHONIOENCODING=utf8
HISTSIZE=50000
ulimit -n 65535
shopt -s histappend # append to history, don't overwrite it
# sudo v2
#
# vim: ft=sh: