bash: remove exec new, improve prompt, block cursor during command
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user