-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
55 lines (47 loc) · 1.43 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
54
#=== some usefull aliases ===>
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ls='ls -FGh'
alias su='su -m'
if [ -f /usr/local/bin/vim ]; then
alias vi='vim'
fi
#=== shell options ===>
shopt -s cdspell
shopt -s cdable_vars
shopt -s checkhash
shopt -s checkwinsize
shopt -s sourcepath
shopt -s cmdhist
shopt -s histappend histreedit histverify
shopt -s extglob
#=== less options ===>
LESS="-R"; export LESS
#LESS="-FR"; export LESS
#=== seting up the command history ===>
HISTFILE="${HOME}/.history"; export HISTFILE
HISTCONTROL="ignoredups,erasedups"; export HISTCONTROL
HISTIGNORE="&:[bf]g:ls*:cd"; export HISTIGNORE
HISTSIZE=500; export HISTSIZE
HISTFILESIZE=500; export HISTFILESIZE
PROMPT_COMMAND='history -a'; export PROMPT_COMMAND
#=== color term ===>
#if [ -n "$COLORTERM" ]; then
# TERM=xterm-256color; export TERM
#fi
#if [ "$TERM" = "xterm" ]; then
# TERM=xterm-256color; export TERM
#fi
#=== color definitions ===>
if [ -f $HOME/.colors ]; then
source $HOME/.colors
fi
#=== seting up the shell prompt ===>
PS1="${purple}╓───${darkgray}( ${cyan}\w${darkgray} )\n${purple}╙─[ "
case `id -u` in
0) PS1="${PS1}${red}\u${brown}@${red}`hostname`";;
*) PS1="${PS1}${green}\u${brown}@${green}`hostname`";;
esac
PS1="${PS1}${purple} ]${nc}\\$ "
export PS1