Jump to content

Account Customisation (zsh): Difference between revisions

m
Line 31: Line 31:
Begin and end underlined print
Begin and end underlined print
  %M
  %M
server name - prodigy.redbrick.dcu.ie
server name - murphy.redbrick.dcu.ie
  %m
  %m
The part of the hostname up to the first . - prodigy
The part of the hostname up to the first . - prodigy
Line 47: Line 47:
Including these in your command prompt exports allows you to have a clock on your command prompt which updates every time you press return, and you can see your current working directory to save you typing "pwd" every time you forget where you are. e.g.
Including these in your command prompt exports allows you to have a clock on your command prompt which updates every time you press return, and you can see your current working directory to save you typing "pwd" every time you forget where you are. e.g.


  cambo@prodigy (~) % export PS1="[%B%n%b @ %M]>"
  receive@murphy (~) % export PS1="[%B%n%b @ %M]>"
  [cambo @ prodigy]> export RPS1="[%* on %D]"
  [receive @ murphy]> export RPS1="[%* on %D]"
  [cambo @ prodigy]>          [12:00:00 on 02-05-15]
  [receive @ murphy]>          [12:00:00 on 02-05-15]


== Adding colours to the command prompt ==
== Adding colours to the command prompt ==