.bashrc: update
parent
1c41d87764
commit
7c8ebef0e0
12
.bashrc
12
.bashrc
|
@ -3,14 +3,11 @@
|
||||||
# if not running interactively, don't do anything
|
# if not running interactively, don't do anything
|
||||||
[ -z "$PS1" ] && return
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
# title
|
|
||||||
PS1="\[\e]0;\u@\h:\w\a\]$PS1"
|
|
||||||
|
|
||||||
# readline
|
# readline
|
||||||
bind "set editing-mode vi"
|
bind "set editing-mode vi"
|
||||||
bind "set keyseq-timeout 50"
|
bind "set keyseq-timeout 50"
|
||||||
bind "set show-mode-in-prompt on"
|
bind "set show-mode-in-prompt on"
|
||||||
bind "set vi-ins-mode-string \1\e[35m\2+\1\e[0m\2"
|
bind "set vi-ins-mode-string \1\e[01;35m\2+\1\e[0m\2"
|
||||||
bind "set vi-cmd-mode-string :"
|
bind "set vi-cmd-mode-string :"
|
||||||
|
|
||||||
bind "set keymap vi-command"
|
bind "set keymap vi-command"
|
||||||
|
@ -25,9 +22,14 @@ bind "set completion-display-width 0"
|
||||||
bind "set colored-stats on"
|
bind "set colored-stats on"
|
||||||
bind "set visible-stats on"
|
bind "set visible-stats on"
|
||||||
|
|
||||||
|
# prompt
|
||||||
|
PS1=" \[\e[1m\]\u@\h\[\e[0m\] \[\e[1;34m\]\w\[\e[0m\] \[\e[1m\]\$\[\e[0m\] "
|
||||||
|
|
||||||
|
# title
|
||||||
|
PS1="\[\e]0;\u@\h:\w\a\]$PS1"
|
||||||
|
|
||||||
# alias
|
# alias
|
||||||
alias q="exit"
|
alias q="exit"
|
||||||
alias e='${EDITOR:-vi}'
|
|
||||||
alias diff="diff --color=auto"
|
alias diff="diff --color=auto"
|
||||||
alias grep="grep --color=auto"
|
alias grep="grep --color=auto"
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
|
|
Loading…
Reference in New Issue