Reputation
35,399
Next tag badge:
373/400 score
91/80 answers
Badges
5 90 131
Newest
 Good Answer
Impact
~3.3m people reached

2d
comment Detach from tmux and rotate to ssh without dropping exec?
@Gilles I'm not necessarily. It did seem like there would already be some mechanism to handle this kind of process swapping. If there really isn't then the question becomes what sort of switcher can I put in there that won't get in the way of either mosh or tmux doing their jobs but allows me to drop out of either and switch to the other.
Feb
3
comment Detach from tmux and rotate to ssh without dropping exec?
@ThomasDickey Been there done that. But even one letter plus enter means sometimes I was too lazy to jump in a session for just that one quick thing until after I realized it wasn't going to be as quick as I thought it was. Also a number of key bindings that effect the shell itself and the way I manage copy/paste now kind of depends on everything being in tmux, so the extra step is a waste.
Feb
3
asked Detach from tmux and rotate to ssh without dropping exec?
Jan
28
awarded  Good Answer
Jan
26
comment Set tmux status line color based on hostname
You might want to make it an alternate ending for the answer rather than entering it as the main answer because its likely to confuse the heck out of anybody who doesn't have some advanced shell foo under their belt. The solution is a hack involving here-docs and to get both a config file and an executable script out of the same file, so implementing this requires a change to the whole config file, not just adding a couple of lines. Getting it right won't be for everybody, so give them an way to edit their regular config using external scripts before suggesting it can be mashed together.
Jan
25
comment Set tmux status line color based on hostname
My tmux config includes a way to define and run arbitrary shell functions self contained inside the tmux conf file.
Jan
23
awarded  Nice Answer
Jan
14
revised changing current working dir with a script
deleted 1 character in body
Jan
1
comment How can I securely delete the contents of a thumb drive so data can't be recovered.
No, actually it won't. Especially on flash media the actual file data even from sucessive writes is likely to end up on physically different bits of disk. As for format commands, for most file systems those only clear the tables with meta information and almost always leave the actual bits across most of the disk untouched.
Dec
30
asked Can a wibox in Awesome-WM be setup vertically?
Dec
21
awarded  Notable Question
Dec
14
awarded  Good Answer
Dec
11
awarded  Great Answer
Dec
8
awarded  Nice Answer
Dec
8
comment Devanagari (combined) words are not displaying correctly
Browsers, Gnome/Gtk apps like Gedit, and LibreOffice use three different font processing stacks. This isn't a single issue. That being said having the latest fontconfig, Harfbuzz, and Graphite libraries installed is a good place to start. Can you tell us what versions of those as well as LibreOffice you are running. Also what font are you testing with?
Dec
4
accepted Can Zathura's “dual” page mode use a page offset?
Nov
29
awarded  Nice Answer
Nov
12
comment Use system command instead of Bash builtin without specifying the full path
@Anthony maybe this is a zsh only thing. I use it regularly but I'll check on bash from a computer tomorrow.
Nov
12
answered Use system command instead of Bash builtin without specifying the full path
Nov
4
comment Passing root password safely in a shell script
Any time you pass a variable as an argument to a shell command the shell does the expansion from variable name to value. The command that gets executed has the value as the argument and anything with access to the process list can read those arguments. Try for example var=131 ; sleep $var & ; ps waux | grep 131. You are passing it to the final command through stdin which is okay but that's only after invoking a builtin shell command with the sensitive data as a regular argument in plain sight.