-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
49 lines (40 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
# ~/.bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
if [ -d ~/afs/bin ] ; then
export PATH=~/afs/bin:$PATH
fi
if [ -d ~/.local/bin ] ; then
export PATH=~/.local/bin:$PATH
fi
export LANG=en_US.utf8
export NNTPSERVER="news.epita.fr"
export EDITOR=vim
#export EDITOR=emacs
# Color support for less
#export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
#export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
#export LESS_TERMCAP_me=$'\E[0m' # end mode
#export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
#export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
#export LESS_TERMCAP_ue=$'\E[0m' # end underline
#export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
alias ls='ls --color=auto'
alias grep='grep --color -n'
PS1='[\u@\h \W]\$ '
command -v zsh >/dev/null 2>&1 && exec zsh || {
echo >&2 "zsh is not installed.";
while true; do
read -p "Do you wish to run install.sh? " yn
case $yn in
[Yy]* )
exec "$HOME/.config/install.sh";
exec zsh;
break;;
[Nn]* )
break;;
*)
echo "Please answer yes or no.";;
esac
done
}