Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 23493  / 2 Years ago, wed, january 5, 2022, 1:09:42

So I just installed Zsh, and it shows for each command arrow and then ~. How do I enable my username@computername or something similar? I am reading https://wiki.archlinux.org/index.php/zsh but cannot figure this out.



That's how it looks now: enter image description here


More From » zsh

 Answers
1

The prompt is configured in your ~/.zshrc file setting the variable PROMPT. For example, to have your username and host followed by a "dynamic" %:



~ PROMPT="%n@%m%# "
romano@samsung-romano%


The whole set of customization is available in the, as ever, wonderful Arch documentation.



Anyway, I warmly advise the usage of liquidprompt --- notice that once installed it will install a mechanism to control the prompt so that changing the PROMPT variable will not work anymore.


[#24618] Friday, January 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tudatchful

Total Points: 270
Total Questions: 109
Total Answers: 122

Location: Palau
Member since Tue, May 30, 2023
1 Year ago
;