1
0
Fork 0

.bashrc: update

main
urosm 2024-05-23 09:38:39 +02:00
parent e7440fa5d0
commit 8823d1540f
1 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# readline # readline
bind "set editing-mode vi" bind "set editing-mode vi"
bind "set keyseq-timeout 50" bind "set keyseq-timeout 0"
bind "set show-mode-in-prompt on" bind "set show-mode-in-prompt on"
bind "set vi-ins-mode-string \1\e[01;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 :"
@ -24,6 +24,9 @@ bind "set visible-stats on"
# prompt # prompt
PS1="\[\e[1m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\[\e[1m\]\$\[\e[0m\] " PS1="\[\e[1m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\[\e[1m\]\$\[\e[0m\] "
if [ -z $TERMUX_VERSION ]; then
PS1="\[\e[1m\]urosm@trento\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\[\e[1m\]\$\[\e[0m\] "
fi
# title # title
PS1="\[\e]0;\u@\h:\w\a\]$PS1" PS1="\[\e]0;\u@\h:\w\a\]$PS1"
@ -60,4 +63,4 @@ osc7_cwd() {
done done
printf '\e]7;file://%s%s\e\\' "${HOSTNAME}" "${encoded}" printf '\e]7;file://%s%s\e\\' "${HOSTNAME}" "${encoded}"
} }
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND}osc7_cwd PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }osc7_cwd