1 |
On Tue, 3 June 2014, at 6:59 am, Mick <michaelkintzios@×××××.com> wrote: |
2 |
>> … |
3 |
>> I have: |
4 |
>> |
5 |
>> … |
6 |
>> status-left "#[fg=blue]#T" |
7 |
>> … |
8 |
>> status-right "#[fg=blue][#S]" |
9 |
>> … |
10 |
>> |
11 |
> Thanks Stroller, |
12 |
> |
13 |
> On the left status bar I see this: |
14 |
> |
15 |
> [0] 0:bash* |
16 |
> |
17 |
> with one window open. As I create more windows it adds to it like so: |
18 |
> |
19 |
> [0] 0:bash 1:bash- 2:bash* |
20 |
> |
21 |
> |
22 |
> The right hand side shows the prompt, or command being run, but not all of it |
23 |
> if it is too long. |
24 |
> |
25 |
> … |
26 |
> status-left "[#S]" |
27 |
> … |
28 |
> status-right ""#22T" %H:%M %d-%b-%y" |
29 |
|
30 |
|
31 |
It looks to me like I've merely swapped left and right panes because, presumably, I thought it looked better that way. |
32 |
|
33 |
And I've removed the clock - that's one way you could reclaim some screen space. |
34 |
|
35 |
I seem to be a little tired, and not fully functional, right now, but you could do this (for example), like this: |
36 |
|
37 |
tmux set -g status-right "#22T" |
38 |
|
39 |
The relevant section of the man page is: |
40 |
|
41 |
status-left string |
42 |
Display string to the left of the status bar. string |
43 |
will be passed through strftime(3) before being used. By |
44 |
default, the session name is shown. string may contain |
45 |
any of the following special character sequences: |
46 |
|
47 |
Character pair Replaced with |
48 |
#(shell-command) First line of the command's |
49 |
output |
50 |
#[attributes] Colour or attribute change |
51 |
#H Hostname of local host |
52 |
#h Hostname of local host without |
53 |
the domain name |
54 |
#F Current window flag |
55 |
#I Current window index |
56 |
#D Current pane unique identifier |
57 |
#P Current pane index |
58 |
#S Session name |
59 |
#T Current pane title |
60 |
#W Current window name |
61 |
## A literal ‘#’ |
62 |
|
63 |
|
64 |
As I say, I don't seem to be firing on all cylinders right now, but it doesn't look to me like the "commands being run" are shown where you say they are, not on the far right, at least. |
65 |
|
66 |
I think they're shown in the *middle* section of the status bar. |
67 |
|
68 |
Where above you have said your display shows: |
69 |
|
70 |
[0] 0:bash 1:bash- 2:bash* |
71 |
|
72 |
Then the first "0", in square brackets, indicates the name of the current session. Try this by opening a new terminal and running `tmux new-s -s test_sess`. |
73 |
|
74 |
I think that "bash" is the name of the command being run in each of your sessions. |
75 |
|
76 |
You might like to try running the attached countdown.pl script and see how "the command being run" is displayed. |
77 |
|
78 |
HTH, |
79 |
|
80 |
Stroller. |