bash: remove exec new, improve prompt, block cursor during command

This commit is contained in:
2024-06-24 22:49:34 +02:00
parent 9062aeb17a
commit 98e69defac
2 changed files with 12 additions and 5 deletions

View File

@ -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