Reputation
3,671
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
7 22
Newest
 Yearling
Impact
~261k people reached

Apr
13
answered How to find a router at an unknown location in a house?
Apr
2
awarded  Yearling
Mar
20
awarded  Nice Answer
Feb
21
awarded  Good Answer
Dec
7
comment Restore tmux session after reboot
@karatedog Yes, so we both agree that hibernation is not a solution to losing your tmux session on reboot.
Dec
1
awarded  tmux
Nov
16
comment A more comfortable way to edit a long $PATH?
Duplicate paths aren't really a problem. It's highly unlikely that you would have add enough directories to PATH to actually cause performance issues (especially since the shell caches successful lookups).
Nov
13
revised Bash: execute when job in background completes
added 6 characters in body
Nov
13
answered Bash: execute when job in background completes
Nov
7
awarded  Revival
Sep
25
comment PATH has invalid characters
@Archemar Each of those ends with :$PATH, so the result is to prepend a directory to the path. (Oh, you are referring to the assignment that follows those four, that doesn't include $PATH in the value.)
Sep
23
awarded  Nice Answer
Sep
21
comment Alternative to multiple iterations of 'cut'
Don't use less here; it's just a heavier version of cat in a pipeline. Either use cat "$file" | cut -d':' -f6 | ... or, better yet, cut -d':' -f6 "$file" | ....
Sep
17
comment “read” works as expected in ZSH but behaves differently when using any other shell
Typically, one would use $'\r' instead of $(echo -en "\r").
Sep
8
comment Bash shell, associative array empty after piping
Well, for one, use f < file.txt not cat, but in general, you can either use the lastpipe option so that the last command in a pipeline executes in the current process (shopt -s lastpipe; somecommand | f; g), or use process substitution instead of a pipe (f < <(somecommand); g).
Sep
8
answered Bash shell, associative array empty after piping
Aug
31
revised How to source a script in every panes and windows of a specific tmux session
added 491 characters in body
Aug
31
comment In tmux, is it possible to list all panes in all windows?
Sorry about that. I must have been looking at the man page on two different machines (one apparently out of date) while trying to find if there was a feasible answer.
Aug
30
comment How to source a script in every panes and windows of a specific tmux session
See the documentation for set-option; you should be able to specify the session you want change the default command for.
Aug
29
comment Bash script to create a folder structure
Parameter expansion happens after brace expansion, so {1..$seasons} is not a valid brace expansion and it is treated literally.