blob: 49432de99fe11c686967504f54dc3b734b7ef50d (
plain) (
blame)
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
55
56
57
58
59
|
# dotfiles -- bashrc
# author: johannst
#{{{ general
if [ "$TERM" == "screen" ]; then export TERM=screen-256color; fi
if [ "$TERM" == "xterm" ]; then export TERM=xterm-256color; fi
# disable sticky mode
stty -ixon
# disable ctrl-d logoff
set -o ignoreeof on
#}}}
#{{{ vi mode
set -o vi
bind -m vi-insert '"jj":vi-movement-mode'
bind -m vi-insert 'Control-l:clear-screen'
bind -m vi-command '"diw":"bdw"'
bind -m vi-command 'Control-a:beginning-of-line'
bind -m vi-command 'Control-e:end-of-line'
bind -m vi-insert 'Control-a:beginning-of-line'
bind -m vi-insert 'Control-e:end-of-line'
bind -m vi-command '"v":""' # disable opening tmp file
#}}}
#{{{ alias
alias ls='ls --color=auto -h'
alias ll='ls -lF'
alias la='ls -AF'
alias grep='grep --color=auto'
#}}}
#{{{ color definition
BCol_NoColor='\e[m'
BCol_DarkRed='\e[38;5;88m'
BCol_DarkOrange='\e[38;5;202m'
BCol_LightOrange='\e[38;5;208m'
BCol_LightGray='\e[38;5;7m'
BCol_Yellow='\e[38;5;226m'
BCol_LightBlue='\e[38;5;74m'
BCol_BlueGray='\e[38;5;67m'
BCol_YellowOrange='\e[38;5;214m'
#}}}
#{{{ bash prompt
export PS1="\[${BCol_DarkRed}\]::\[${BCol_DarkOrange}\]\u\[${BCol_DarkRed}\]::\[${BCol_LightOrange}\]\H\[${BCol_LightGray}\] - \[${BCol_Yellow}\]\t\[${BCol_LightGray}\] - \[${BCol_LightBlue}\]\w\n\[${BCol_NoColor}\][\[${BCol_YellowOrange}\]\${?}\[${BCol_NoColor}\]] \[${BCol_BlueGray}\]>>\[${BCol_NoColor}\] "
#}}}
#{{{ ls colors
export LS_COLORS='di=94:ln=96:or=96;41:so=0:pi=0:ex=01;92:bd=0;42:cd=0;42:su=0:sg=0:tw=30;44:ow=30;44'
#}}}
|