-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
executable file
·34 lines (27 loc) · 868 Bytes
/
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
# .bashrc
# Unlike earlier versions, Bash4 sources your bashrc on non-interactive shells.
# The line below prevents anything in this file from creating output that will
# break utilities that use ssh as a pipe, including git and mercurial.
[ -z "$PS1" ] && return
# for vim coloring to work properly
export CLICOLOR=1
export TERM='xterm-256color'
if [ -e /usr/share/terminfo/x/xterm-256color ]; then
export TERM='xterm-256color'
else
export TERM=xterm-256color
fi
# Powerline prompt
function _update_ps1() {
PS1="$(~/powerline-shell.py --cwd-mode fancy --cwd-max-depth 4 --cwd-max-dir-size 10 $? 2> /dev/null)"
}
if [ "$TERM" != "linux" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# setup aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
export EDITOR="/usr/bin/vim"
shopt -s checkwinsize
export ANDROID_ADB_SERVER_PORT=15037