-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbashrc
More file actions
43 lines (34 loc) · 863 Bytes
/
bashrc
File metadata and controls
43 lines (34 loc) · 863 Bytes
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
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
# color PS (cyan on default background)
if [ -n "$PS1" ]; then
export PS1="\[\e[36;1m\][\u@\h \W]\$ \[\e[0m\]"
fi
# emacs `shell-mode' do not handle terminal escaping, it set 'TERM' to "dumb"
if [ -n "$PS1" ] && [ "$TERM" == "dumb" ]; then
export PS1="[\u@\h \W]\$ "
fi
# Separate exports file
if [ -f ~/.bash/bash_exports ]; then
. ~/.bash/bash_exports
fi
# Separate aliases file
if [ -f ~/.bash/bash_aliases ]; then
. ~/.bash/bash_aliases
fi
# Separate functions file
if [ -f ~/.bash/bash_functions ]; then
. ~/.bash/bash_functions
fi
# Separate sources file
if [ -f ~/.bash/bash_sources ]; then
. ~/.bash/bash_sources
fi
# Separate private config file
if [ -f ~/.bash/bash_private ]; then
. ~/.bash/bash_private
fi