Jump to content

Account Customisation (zsh): Difference between revisions

m
mNo edit summary
Line 5: Line 5:
Right, you've seen you friends with colour command prompts showing them who is heying them with lots of other bells and whistles and you wanna be part of the "cool" gang. Unfortunately you've just gotten your account and it's... kinda plain. Well then you've come to the right place. The first thing we're going to do is show you how to set your own command prompt message. This is very easy to do, simply exporting a system variable as follows:
Right, you've seen you friends with colour command prompts showing them who is heying them with lots of other bells and whistles and you wanna be part of the "cool" gang. Unfortunately you've just gotten your account and it's... kinda plain. Well then you've come to the right place. The first thing we're going to do is show you how to set your own command prompt message. This is very easy to do, simply exporting a system variable as follows:


  cambo@prodigy (~) % export PS1="[zsh prompt]>"
  receive@murphy (~) % export PS1="[zsh prompt]>"
  [zsh prompt]> export RPS1="[right side prompt]"
  [zsh prompt]> export RPS1="[right side prompt]"
  [zsh prompt]>                          [right side prompt]
  [zsh prompt]>                          [right side prompt]
Line 16: Line 16:
and then source your .zshrc by typing:
and then source your .zshrc by typing:


  source ~/.zshrc
  source .zshrc


== Using zsh escape sequences ==
== Using zsh escape sequences ==