mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: remove the trailing '%' before prompt
https://github.com/xtermjs/xterm.js/issues/2564 https://unix.stackexchange.com/questions/167582/why-zsh-ends-a-line-with-a-highlighted-percent-symbol https://zsh.sourceforge.io/Doc/Release/Options.html
This commit is contained in:
1 parent
0cc2618b8b
commit
791a450fdc
1 file changed
+2
-2
@@ -1,9 +1,9 @@
|
||||
PROMPT='%n@%m:%~%# '
|
||||
PROMPT='%F{2}%n%f:%~ $ '
|
||||
unsetopt CASE_GLOB
|
||||
setopt CHASE_LINKS
|
||||
emulate bash
|
||||
|
||||
typeset -A cmd
|
||||
set +o prompt_cr
|
||||
|
||||
preexec() {
|
||||
export CMD_START_TIME=$(date +%s%N) # capture start time
|
||||
|
||||
Reference in new issue
Block a user