-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbashrc
50 lines (39 loc) · 1.07 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
#!/bin/bash
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
if [ "$SHELL" != "/bin/bash" ]; then
export SHELL=/bin/bash
exec /bin/bash -l
fi
export PS1="\[\e[0;91m\]\u\[\e[0;36m\]@\[\e[0;91m\]\h\[\e[0m\] \[\e[0;36m\]\W\[\e[0m\] \[\e[1;91m\]:\[\e[0m\]"
## COMPLETION ##
complete -cf sudo
set completion-ignore-case on
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
if [ -d /usr/local/etc/bash_completion.d ] && ! shopt -oq posix; then
for completion in /usr/local/etc/bash_completion.d/*;do
. /usr/local/etc/bash_completion.d/completion
done
fi
## HISTORY ##
export HISTCONTROL='ignoredups:ignoreboth'
export HISTSIZE=16384
export HISTFILESIZE=$HISTSIZE
export HISTTIMEFORMAT="%a %F %r "
export HISTIGNORE='&:[ ]*:clear:exit'
export PROMPT_COMMAND='history -a; history -r'
shopt -s cmdhist
shopt -s histappend
## MAIL ##
shopt -u mailwarn
## TERMINAL ##
export TERM=xterm-256color
force_color_prompt=yes
shopt -s cdspell
shopt -s checkwinsize
shopt -s nocaseglob
## SHARED ##
source "$HOME/.shared"
cd $HOME