-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bashrc
62 lines (49 loc) · 1.19 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
# .bashrc
# User specific aliases and functions
# Defines the verbose variable, see .bashprompt.sh for details
VERB=0
export VERB
# test for an interactive shell.
if [[ $- != *i* ]]; then
return
fi
# History crap
HISTCONTROL=ignoredups
HISTIGNORE=clear:ls
export HISTCONTROL
export HISTIGNORE
EDITOR=`which vim`
export EDITOR
# Source global definitions
if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi
# Source aliases
if [ -f ~/.aliases ]; then
source ~/.aliases
fi
# Source prompt
if [ -f ~/.bash_prompt ]; then
source ~/.bash_prompt
else
PS1='$PWD > '
fi
# Bash Completion
if [ -f /etc/bash_completion ]; then
source /etc/bash_completion
fi
if [ -f /etc/profile.d/bash-completion.sh ]; then
source /etc/profile.d/bash-completion.sh
fi
if [ -f /opt/local/etc/bash_completion ]; then
source /opt/local/etc/bash_completion
fi
if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
source /opt/local/etc/profile.d/bash_completion.sh
fi
if [ `uname` != 'Darwin' ]; then
# .plan (for finger)
echo -e "Home Phone: 978-448-6288\nCell Phone: 978-400-6980\n-----\n`uname -o` `uname -rp`\n`uname -n`"> ~/.plan
fi
# Grep color options
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'