teemrah - 2005-03-19

PS1 variables for UnxUtils -

(Assuming you are in C:\Windows\System32\) -

%c - current folder (e.g. "System32")
%C - current folder with drive letter - (e.g. "(C:)System32")
%d - full path - (e.g. "C:/Windows/System32")
%D - date - (yy-mm-dd)
%h - history - "n" where "n" is serial number of current command
%m - computer name
%M - computer name
%n - user name
%t - time
%T - time - 24HR
%w - date - (day and date)
%W - date - (mm/dd/yy)

examples -

$
$ export PS1="%d> "
C:/Windows/System32>
C:/Windows/System32> export PS1="%c%D-%t> "
System32:5-03-19,10:19AM>
System32:5-03-19,10:19AM> export PS1="%w> "
Sat 19>
Sat 19>

Enjoy

teemrah

Download cool ringtones and wallpapers from http://www.e-wireless.ca/mobilefun