Difference between revisions of "PS1"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
== Examples ==
 
== Examples ==
 
* <code>PS1='[\u@\h \W]\$ '</code>
 
* <code>PS1='[\u@\h \W]\$ '</code>
 +
 +
* <code>PS1='[\u@\h \W]\$[[\n]]'</code>
  
 
* <code>[[export]] [[PS1]]='[\u@\h $[[AWS_PROFILE]]]\$ '</code>
 
* <code>[[export]] [[PS1]]='[\u@\h $[[AWS_PROFILE]]]\$ '</code>
Line 15: Line 17:
 
* [[PATH]]
 
* [[PATH]]
 
* [[PROMPT]] in [[oh-my-zsh]]
 
* [[PROMPT]] in [[oh-my-zsh]]
* [[__git_ps1]] function
+
* <code>[[__git_ps1]] function</code>
 
* https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash
 
* https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash
  

Latest revision as of 12:09, 14 March 2023

Advertising: