bash: remove exec new, improve prompt, block cursor during command
This commit is contained in:
parent
9062aeb17a
commit
98e69defac
@ -5,7 +5,8 @@
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
which nu >/dev/null && exec nu
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
PS1='[\u@\h \W]\$ '
|
||||
PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ '
|
||||
|
||||
function before_command() { echo -ne '\e[2 q'; }
|
||||
trap before_command DEBUG
|
||||
|
@ -1,5 +1,11 @@
|
||||
set editing-mode vi
|
||||
set show-mode-in-prompt on
|
||||
set vi-ins-mode-string \1\e[6 q\2
|
||||
set vi-cmd-mode-string \1\e[2 q\2
|
||||
set vi-ins-mode-string \1\e[6 q\2\e[31m[+]\e[0m \2
|
||||
set vi-cmd-mode-string \1\e[2 q\2\e[32m[:]\e[0m \2
|
||||
|
||||
set keymap vi-command
|
||||
"k": history-substring-search-backward
|
||||
"j": history-substring-search-forward
|
||||
|
||||
set keymap vi-insert
|
||||
"\C-l": clear-screen
|
||||
|
Loading…
x
Reference in New Issue
Block a user