M*P 发帖数: 6456 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: MHP (马后炮), 信区: Linux
标 题: Re: how do you show this navigation bar in screen?
发信站: BBS 未名空间站 (Thu Feb 13 11:39:43 2014, 美东)
this is better.
won' |
w******p 发帖数: 166 | 2 tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
bash config in .bashrc or .bash_profile and change prompt
[production] of not, should be based on machine name
if [[ $(hostname) =~ login ]]; then
export PS1="\[\033[32m\]\u@\h \[\033[32;0;31m\][production]\[\033[0m\] \
W $ "
else
export PS1="\[\033[32m\]\u@\h \W $ "
fi |
h**u 发帖数: 19 | 3 I had the following in my .screenrc
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%
?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
【在 M*P 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: MHP (马后炮), 信区: Linux : 标 题: Re: how do you show this navigation bar in screen? : 发信站: BBS 未名空间站 (Thu Feb 13 11:39:43 2014, 美东) : this is better. : won'
|
h**u 发帖数: 19 | 4 There is an extra line to make it effective:
hardstatus alwayslastline
t%
【在 h**u 的大作中提到】 : I had the following in my .screenrc : hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t% : ?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
|