forked from pinktrink/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrc
107 lines (80 loc) · 2.76 KB
/
rc
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
for inc in $HOME/.dotfiles/all.sh/funcs/*; do
if [[ -f $inc ]]; then
source $inc
fi
done
use colors
# Nobody needs to see control sequences when they're hit.
stty -echoctl
# Color is nice
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
# We don't need .DS_Store files in our tar archives
export COPY_EXTENDED_ATTRIBUTES_DISABLE=1
export COPYFILE_DISABLE=1
# Update the manpath for custom man commands.
export MANPATH=$MANPATH:$HOME/.dotfiles/etc/man
# Make sure anything installed by Brew takes precedence over defaults
export PATH=/usr/local/bin:$PATH
# Add ~/.dotfiles/bin to PATH so that I can use custom commands
export PATH=$HOME/.dotfiles/bin:$PATH
# Set the history size to 10000
export HISTSIZE=10000
# Don't allow virtualenv to modify the bash prompt.
export VIRTUAL_ENV_DISABLE_PROMPT=1
# Vim is the editor. This is the only choice.
export VISUAL=$(which vim)
export EDITOR=$(which vim)
# The colors for the username in the prompt
PROMPT_USER_NORMAL="$green"
PROMPT_USER_ROOT="$blink $red"
# The colors for the brackets around the directory
PROMPT_DIR_INHOME="$bold $green"
PROMPT_DIR_OUTSIDE="$bold $red"
# The colors for the actual $/#/% in the prompt
PROMPT_PROMPT_NORMAL="$bold $green"
PROMPT_PROMPT_ROOT="$bold $red"
# The colors for the last return status
PROMPT_EXIT_ZERO="$green"
PROMPT_EXIT_NONZERO="$bold $red"
# Whether or not to include repo stats
PROMPT_REPO=1
# Where the warning starts and ends for the number of files changed
PROMPT_REPO_FILECHANGE_WARN_START=4
PROMPT_REPO_FILECHANGE_WARN_END=6
# The colors for different parts of the repo stats
PROMPT_REPO_FILECHANGE_GOOD="$bold $green"
PROMPT_REPO_FILECHANGE_WARN="$bold $orange"
PROMPT_REPO_FILECHANGE_BAD="$bold $red"
PROMPT_REPO_INSERTION="$green"
PROMPT_REPO_DELETION="$red"
PROMPT_REPO_NO_CHANGE="$dim $green"
PROMPT_REPO_DETACHED="$bold $red"
# Whether or not to include virtualenv environment info
PROMPT_VIRTUALENV=1
# Whether or not to include rbenv environment info
PROMPT_RBENV=1
# Whether or not to show a battery meter
PROMPT_BATTERY=1
# Where the warning starts and ends for the charge (1-10)
PROMPT_BATTERY_WARN_START=5
PROMPT_BATTERY_WARN_END=3
# The colors for the battery meter
PROMPT_BATTERY_GOOD="$bold $green"
PROMPT_BATTERY_WARN="$bold $orange"
PROMPT_BATTERY_BAD="$bold $red"
PROMPT_BATTERY_ALMOST_DEAD="$blink $red"
PROMPT_BATTERY_DISCHARGING="$bold $red"
PROMPT_BATTERY_CHARGING="$bold $orange"
PROMPT_BATTERY_CHARGED="$bold $green"
PROMPT_BATTERY_OTHER="$bold $cyan"
# Pink.
PROMPT_USER_NORMAL="$pink"
PROMPT_DIR_INHOME="$bold $pink"
PROMPT_PROMPT_NORMAL="$bold $pink"
PROMPT_EXIT_ZERO="$pink"
PROMPT_REPO_FILECHANGE_GOOD="$bold $pink"
PROMPT_REPO_INSERTION="$pink"
PROMPT_REPO_NO_CHANGE="$dim $pink"
PROMPT_BATTERY_GOOD="$bold $pink"
PROMPT_BATTERY_CHARGED="$bold $pink"