Reputation
7,905
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
2 30 37
Newest
 Enlightened
Impact
~271k people reached

Jun
26
answered Tmux - Get pane # of each pane in a window from a script?
Jun
4
awarded  Enlightened
Jun
4
awarded  Nice Answer
May
26
revised Write all tmux scrollback to a file
In tmux 2.0, `capture-pane` knows that `-S -` means “start at the beginning of history”.
May
4
awarded  Good Answer
May
1
comment How big is the pipe buffer?
@CMCDragonkai: That is probably too much to address in a comment. Perhaps ask it as a new question? You might find some answers in the POSIX spec: FIFO definition, open(2), read(2), and write(2) (search for FIFO in these later ones).
Mar
12
comment How big is the pipe buffer?
@WakanTanka: The Perl program writes to its stdout (a shell-created pipe—the one that is being tested) in blocks of a given size and reports to its stderr a running total of how much it has written (until it gets an error—usually because the pipe’s buffer is full or possibly because the reading end of the pipe has been closed after a short time (exec 0<&-)). The final report is collected (tail -1) and printed along with the write size.
Mar
12
comment How big is the pipe buffer?
@WakanTanka: It is a bit much to describe in a comment, but that particular construct is a parameter assignment (var=…) of the output of a command substitution ($(…)) that includes grouped commands ({…}, and (…)). It also uses several (less common) redirections (i.e. 0<&- and 3>&1).
Feb
27
awarded  Guru
Feb
24
comment Tmux - Get number of panes in the current window in bash variable?
In one command: tmux display-message -p '#{window_panes}' (see the FORMATS section of the man page for other variables).
Feb
17
awarded  Enlightened
Feb
17
awarded  Nice Answer
Feb
3
awarded  Nice Answer
Jan
29
awarded  Guru
Jan
16
awarded  Good Answer
Nov
17
answered Can I see what's going on in a tmux session without attaching to it?
Nov
5
awarded  vim
Nov
4
awarded  Enlightened
Nov
4
awarded  Nice Answer
Oct
29
awarded  Enlightened