When I was editing .zshrc, the command line became long and disturbing.
How can I undo it?
\[\e]0;\u@\h:\w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
US>At the command line prompt? If you manually type PS1=$
, the prompt will be shorter for that shell only.If you want to shorten the shell that you are launching in the future, find the line that sets the environment variable PS1
in ~/.zshrc
and re-edit it.
In /etc/zshrc
, the default for the PROMPT
variable is set as follows, so
Try re-editing ~/.zshrc
using this as an example.
#Set prompts
PROMPT='[%n@%m]% to %#'#default prompt
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
581 PHP ssh2_scp_send fails to send files as intended
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
912 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.