diff options
author | Blubber <f2005278@mvrht.com> | 2016-10-23 16:17:23 +0200 |
---|---|---|
committer | Blubber <f2005278@mvrht.com> | 2016-10-23 16:17:23 +0200 |
commit | 7d73c14f17bb03ddf06c4cd8670295a11864e6c3 (patch) | |
tree | d51059e2840b6a117ab5d2d40c1dc3da279b4e08 /bashrc | |
parent | 5430828f3126c495ff75e702c8475a0671ba8091 (diff) | |
download | dotfiles-7d73c14f17bb03ddf06c4cd8670295a11864e6c3.tar.gz dotfiles-7d73c14f17bb03ddf06c4cd8670295a11864e6c3.zip |
small fix
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -1,26 +1,28 @@ # dotfiles -- bashrc # author: johannst -#{{{ general bash settings +#{{{ general if [ "$TERM" == "screen" ]; then export TERM=screen-256color; fi if [ "$TERM" == "xterm" ]; then export TERM=xterm-256color; fi -# enable vi mode (use 'bind -p' to see bindings) +# disable sticky mode +stty -ixon + +#}}} +#{{{ 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 'Control-a:beginning-of-line' -bind 'Control-e:end-of-line' - -# disable sticky mode -stty -ixon +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' #}}} -#{{{ alias +#{{{ alias alias ls='ls --color=auto -h' alias ll='ls -alF' @@ -28,7 +30,7 @@ alias la='ls -AF' alias grep='grep --color=auto' #}}} -#{{{ color definition +#{{{ color definition BCol_NoColor='\e[m' BCol_DarkRed='\e[38;5;88m' @@ -41,12 +43,12 @@ BCol_BlueGray='\e[38;5;67m' BCol_YellowOrange='\e[38;5;214m' #}}} -#{{{ bash prompt +#{{{ 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 +#{{{ 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' |