Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 67279  / 2 Years ago, sat, march 12, 2022, 11:16:56

Yesterday I installed Zsh, and tried to configure some things, but somehow everything is messed up. A lot of commands do not work, I've done PROMPT in ~/.zshrc but it does not work correctly either.


For example when I am trying to search for something:
enter image description here


Now as you can see I also don't have the prompt name even though I added the PROMPT="...." configuration in the ~/.zshrc file.


Is it possible to somehow reset the whole configuration?


zsh  echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/mosquito/HP_Fortify/HP_Fortify_SCA_and_Apps_3.80/bin:/home/mosquito/HP_Fortify/HP_Fortify_SCA_and_Apps_3.80/bin



zsh cat /etc/shells
/etc/shells: valid login shells
/bin/sh
/bin/dash
/bin/bash
/bin/rbash
/bin/zsh
/usr/bin/zsh

More From » zsh

 Answers
0

To reset your zsh configuration, remove all instances of .zshrc and any .zshrc.??? swap files you may have left over from previous edits.



rm -f ~/.zshrc*


Then, close your terminal session and re-open. You should get the "new user" screen.
Select the options from the menu prompts to create a new recommended starting point for your .zshrc configuration and add any prompts or other options you need.



That should do it.



Just be sure that zsh is in /etc/shells file.



which zsh


Will verify the path to your zsh shell.



Set the default shell to zsh, if not already done with



chsh -s $(which zsh)


Verify your FPATH contains the zsh functions and site-functions folders.



Hopefully, all is well.


[#24609] Monday, March 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ravturtl

Total Points: 335
Total Questions: 132
Total Answers: 110

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
;