PromptExamples|
[[google排名]] [[google左侧排名]] [[网站建设]] [[搜索引擎推广]] [[google推广]] [[google排名]] [[inflatable games]] [[china inflatables]] [[china inflatable]] [[邮件服务器]] [[信息服务器]] [[网站服务器]] [[Mica tape]] [[玻璃]] [[玻璃技术]] [[玻璃设备]] [[五金工具]] [[进口工具]] [[纳米]] [[纳米管]] [[纳米材料]] [[深圳物业管理]] [[深圳保安]] [[深圳清洁]] [[手机维修]] [[手机维修软件]] [[手机维修系蚞] [[手机维修 软件下载]] [[山特]] [[山特ups]] [[ups电源]] [[APC电源]] [[不间断电源]] [[投影工蘛] [[会议室工蘛] [[多媒体电教室]] [[网络摄像机]] [[Pyrethrum]] [[五金工具]] [[进口工具]] [[鲜花]] [[网上花店]] [[网上订花]] [[inflatable tent]] [[inflatable games]] [[鲜花]] [[网上花店]] [[网上订花]] |
|
|
set prompt = "-- %T %n %~ -- \n$ "
...results in a prompt that looks like:
-- 23:16 lion ~/my/tmp -- $
I thrive on history, and like to have a short reminder of where I am (like the trailing directory and its parent)
set prompt = "%B%U%C2%u %h)%b "
...which results in a prompt that looks like:
my/tmp 21)
...where the number 21 represents the place in the history buffer.
This
set prompt = "-- %w, %d %D %T %n %~ -- \n$ "gives:
-- Sep, Mon 29 22:48 gps ~/tk8.4.4/generic -- $
This gives the time (in boldface - I tend to lose track of time), machinename ("Seraph" in my case), and up to three trailing directories. "Set ellipsis" is optional - without it the prompt will count the "hidden" subdirectories. Note that the flanking characters will depend on your $promptchars variable setting.
set ellipsis set prompt = "%# %B%t%b %m:%c03 %#\n$ "
gives (normal):
% 3:50am Seraph:~ % $
and (superuser):
# 3:52am Seraph:~ # $
I can't stand a prompt that takes more than one line:
set prompt="%n@%m%B%~%b[%h]%B%T%b%#"
which looks like:
user@hostpwd[hist]time%
(that is: pwd and the time are in bold, hist is the location to which the current command will be inserted into the history buffer)
Like it colorful:
set prompt="\n%B%{\033[34m%}[%h] %d %D.%w.%Y %P\n%{\033[31m%}[%n][%m][%~]\n%{\033[30m%}%b"
gives you the follwoing prompt
[349] Thu 29.Jan.2004 23:00:20
[$user][$host][`pwd`]
where the first line is in bold blue, the second in bold red, and the input is on the third line... enjoy.