-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
71 lines (56 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
alias vi='vim'
alias ff='find . -type f| xargs grep -n --color '
alias ffh='find . -name \*.h -type f| xargs grep -n --color '
alias ffc='find . -name \*.c -o -name \*.cpp -type f| xargs grep -n --color '
alias grep='grep --color '
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias gitd='git difftool'
alias xldd='/root/BcmXiaoQiang/external_toolchain/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/ldd'
alias xnm='/root/BcmXiaoQiang/external_toolchain/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/arm-brcm-linux-uclibcgnueabi-nm'
alias tmux='tmux -2'
alias u='ssh -X yubo@u'
if [ `uname` == 'Darwin' ]; then
alias ls='ls -GF'
alias la='ls -GFa'
alias ll='ls -lGF'
PATH=/usr/local/homebrew/bin:$PATH
else
alias ls='ls -F --color '
alias la='ls -Fa --color '
alias ll='ls -Fl --color '
fi
if [ -f $HOME/.rbenv/bin/rbenv ]; then
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
fi
if [ -e $HOME/go ]; then
export GOPATH=$HOME/gopath
export GOROOT=$HOME/go
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
fi
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1]/"
}
if [ -n $(parse_git_branch) ]; then
export PS1='\[\e[1;36m\]$(e=$? && [ $e -ne 0 ] && echo "[$e]" )\[\e[0m\][${debian_chroot:+($debian_chroot)}\u@\h:\w]\[\e[1;36m\]$(parse_git_branch)\[\e[0m\]\$'
fi
if [ -f $HOME/.git-completion.bash ]; then
source $HOME/.git-completion.bash
fi
alias si='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Source\ Insight\ 3/Insight3.exe'
PATH=~/Android/Sdk/tools:~/Android/android-ndk-r10d:~/Android/Sdk/platform-tools:~/xq/bin/brcm4709/sdk_package/toolchain/bin:$PATH
if [ -e /opt/android/android-studio/bin/studio.sh ]; then
PATH=/opt/android/android-studio/bin:$PATH
fi
if [ "x"$TERM == "xxterm" ]; then
alias sshx='ssh -X'
fi
stty -ixon