出于某种原因,我无法通过键入来更改我的 zsh 提示,例如,PS1="%#". 我在 Ubuntu 11.10 上使用管理员建议的配置。我做错了还是一个错误?
这是我的 ~/.zshrc 的内容:
# Set up the prompt
autoload -Uz promptinit
promptinit
prompt adam1
#PS1="`echo "$PS1" | tr Kk Ff`"
#PS2="`echo "$PS2" | tr Kk Ff`"
#PS3="`echo "$PS3" | tr Kk Ff`"
#PS4="`echo "$PS4" | tr Kk Ff`"
setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000 …Run Code Online (Sandbox Code Playgroud)