Difference between revisions of "PS1"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Draft}}
+
* <code>[[ssh]] SERVER_NAME -t "[[export]] [[PS1]]=your_text; bash"</code>
 
 
 
 
[[ssh]] SERVER_NAME -t "[[export]] [[PS1]]=your_text; bash"  
 
  
 +
== Examples ==
 +
* <code>PS1='[\u@\h \W]\$ '</code>
  
Examples:
+
* <code>PS1='[\u@\h \W]\$[[\n]]'</code>
* <code>PS1='[\u@\h \W]\$ '</code>
 
  
* <code>export [[PS1]]='[\u@\h $[[AWS_PROFILE]]]\$ '</code>
+
* <code>[[export]] [[PS1]]='[\u@\h $[[AWS_PROFILE]]]\$ '</code>
  
  
Line 16: Line 14:
 
== Related terms ==
 
== Related terms ==
 
* <code>[[.bashrc]]</code>
 
* <code>[[.bashrc]]</code>
 +
* <code>[[.bash_profile]]</code>
 +
* [[PATH]]
 +
* [[PROMPT]] in [[oh-my-zsh]]
 +
* <code>[[__git_ps1]] function</code>
 +
* https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash
  
 
== See also ==
 
== See also ==
 +
* {{env}}
 
* {{Bash}}
 
* {{Bash}}
  
  
 
[[Category:Computing]]
 
[[Category:Computing]]

Latest revision as of 12:09, 14 March 2023

Advertising: