-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path_bashrc
44 lines (40 loc) · 841 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
34
35
36
37
38
39
40
41
42
43
44
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# source user definitions, only show output if $PS1 set
# to add a new one, drop it in ~/.profile.d/
if [ -d ~/.profile.d/ ]; then
# sourcing *.sh
for i in ~/.profile.d/*.sh ; do
if [ -r "$i" ]; then
if [ "$PS1" ]; then
. $i
else
. $i &>/dev/null
fi
fi
done
# sourcing *.bash
for i in ~/.profile.d/*.bash ; do
if [ -r "$i" ]; then
if [ "$PS1" ]; then
. $i
else
. $i &>/dev/null
fi
fi
done
fi
# source the user specific bash completion files
if [ -d ~/.bash_completion.d/ ]; then
# sourcing .sh
for i in ~/.bash_completion.d/*.sh ; do
. $i
done
fi
# User specific aliases and functions
EDITOR=/usr/bin/vim
VISUAL=/usr/bin/gvim
export EDITOR VISUAL