forked from nycksw/ocd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
53 lines (42 loc) · 1.16 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
# ~eater/.bashrc
# http://eater.org/
#
# Global bash customizations. This should apply to ALL of your systems.
#
# Use ~/.bashrc_<domain> or ~/.bashrc_<hostname> for local customizations.
mesg n
umask 027
shopt -s checkwinsize
# Non-interactive bail-out.
test -z "$PS1" && return
export PATH=$PATH:~/bin
export EDITOR=vim
export HISTCONTROL=ignoredups
export HISTSIZE=4096
# To enable ISO en_US for ANSI charsets:
# sudo sh -c "echo en_US ISO-8859-1 > /var/lib/locales/supported.d/local"
# sudo locale-gen
#export LANG=en_US
#export LANG=en_US.UTF-8
# Don't ignore leading dots when sorting.
export LC_COLLATE="C"
test -f ~/.pythonrc.py && export PYTHONSTARTUP="$HOME/.pythonrc.py" \
&& export PYTHONPATH="$HOME/py:$PYTHONPATH"
if [ "$TERM" != "dumb" ];then
eval "`dircolors -b`"
alias ls='ls --color=auto'
fi
if [ "$USER" = "root" ]; then
alias vim="vim -u /home/$SUDO_USER/.vimrc"
alias vi="vim"
fi
alias rc="source $HOME/.bashrc"
alias vi="vim"
SOURCE_FILES="
/etc/bash_completion
$HOME/.agentrc
$HOME/.bash_prompts
$HOME/.bashrc_$(hostname -f)
$HOME/.bashrc_$(dnsdomainname)
"
for file in $SOURCE_FILES;do test -f $file && . $file;done