.bashrc: update
parent
e7440fa5d0
commit
8823d1540f
7
.bashrc
7
.bashrc
|
@ -5,7 +5,7 @@
|
|||
|
||||
# readline
|
||||
bind "set editing-mode vi"
|
||||
bind "set keyseq-timeout 50"
|
||||
bind "set keyseq-timeout 0"
|
||||
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-cmd-mode-string :"
|
||||
|
@ -24,6 +24,9 @@ bind "set visible-stats on"
|
|||
|
||||
# prompt
|
||||
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
|
||||
PS1="\[\e]0;\u@\h:\w\a\]$PS1"
|
||||
|
@ -60,4 +63,4 @@ osc7_cwd() {
|
|||
done
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue