450 reputation
312
bio website
location Tokyo, Japan
age 29
visits member for 3 years, 4 months
seen Aug 29 at 1:53

Computational scientist lost in Japan


Dec
29
comment Is there a way to set margins/paddings in tmux?
I'm sorry, I don't have experience with urxvt. I suggest you also post this to the tmux mailing list too. I suggest also mentioning the change in double click behavior.
Dec
27
comment Is there a way to set margins/paddings in tmux?
I am not sure what your terminal emulator considers "word characters," but typically the | bar symbol is not considered a word character and is excluded from selection by double clicking. In your case, it seems to be selecting everything between spaces. Is this the desired behavior? If not, perhaps your terminal emulator may have a setting to configure this. An example using x-terminal.
Dec
18
comment How to reload tmux config file which has defined multiple sessions?
@MikhailMorfikov It's might be due to sh being a different version. Try changing the top line to #!/bin/bash.
Oct
6
comment tmux mouse mode and scrolling very unstable - garbage printed
What terminal emulator do you use?
May
24
comment tmux window last line to statusbar
do you use xterm? edit actually nevermind, I see you want it to be there no matter what window you are viewing. Then if this is a slow process that takes a week, why do you need this to be in your statusline taking up space? You could just as easily move over to that window for a quick look.
May
23
comment If I have left and right tmux panes, how can I visually tell which is focused?
I noticed the split highlighting being half recently and thought it was a bug. Now that I think of it, it's great. However, I think the best solution would be change the background of active/inactive panes.
May
8
comment How to execute a cleanup command on tmux server/session exit?
by "cleanup command" you mean a server-specific command? For example, you have a session open for project A and another session for project B. So you want to execute cleanup_A when session_A is closed? Or do you mean something different?
Aug
20
comment change colours when running screen
Have you tried TERM=xterm-256color tmux to start tmux?
Apr
3
comment tmux exits with [exited] on mac os x
I recently found (for the first time) that if 1) .tmux.conf exists but has syntax errors or 2) .tmux.conf is a symbolic link that links to nothing, tmux will not open. It might be good to try at first with the default configuration file so first mv $HOME/.tmux.conf $HOME/.tmux.conf.backup and see if tmux starts. @ChrisJohnsen is right, your solution simply means that there is a bug afoot.
Feb
18
comment How can you use the domain of the client connected over ssh in the shell?
thanks for that, but it seems these files are binary log files and are difficult to parse. Using cat spills a lot of junk to the screen and parsing it would be a pain, although they interestingly seem to have logs for each day of the past week. I'll investigate if there is a good way to use it.
Feb
18
comment How can you use the domain of the client connected over ssh in the shell?
Thanks for that, it will help in some instances such as OpenSUSE, which has this log (though it seems to spit out a lot of garbage, too), but I am currently interested in OSX which is a variant of BSD. Unfortunately, this is not a log file in OSX.
Nov
22
comment tmux: sharing current window title (#T) from within nested tmux sessions
@elliottcable I just want to add one more point. If you use this and are worried, I suggest doing it ONLY before attaching to a session that does not display the same pane AND you should reset the variable after your session detaches export TERM=$TEMP_TERM
Nov
22
comment tmux: sharing current window title (#T) from within nested tmux sessions
@elliottcable yes, you are right, it does say that. My solution to this problem is more or less a hack. This can mess up your session and may even freeze up slow computers, but I am not certain this is something I am worried about. For example, if you reset TERM to anything other than screen* then you end up running tmux attach-session -t $(tmux display -p "#S") you will setup an infinite loop of tmux nested sessions (chaos!). I am not sure of any other, more extreme examples of possible problems, but you should certainly avoid infinite loops :)
Sep
7
comment UTF-8 Not Working in PuTTY when using SSH Remote command
@Navarr, I agree that it is strange behavior. I suspect that PUTTY may be forcing a different TERM or LANG variable when connecting using the "remote command". There may be an option for this, but I have limited experience with PUTTY (perhaps remote-command: "source $HOME/.bashrc" would help the mystery?). In principle, the only reason to use putty's "remote-command" is to run a program and have the shell quit after it finishes (i.e. the shell exits after you detach). With my work-around, you should be able to just close the window and have no problems because tmux should automatically detach.
Sep
5
comment UTF-8 Not Working in PuTTY when using SSH Remote command
Sorry, also, it might be helpful to know what value of LANG you are using echo $LANG
Sep
5
comment UTF-8 Not Working in PuTTY when using SSH Remote command
No problem, when you connect to the remote machine without "remote command", type echo $TERM (this tells you the value of TERM), I expect "xterm" or something similar. Attach the session and check the output of the same command (it won't be the same). Also, when you connect with "remote connection" being "tmux attach" give the output of the same command, I expect "screen" or something similar. Next, just to make sure, you setup putty to display UTF-8? Also, have you added set term_charset in the irrsi config files?
Sep
4
comment UTF-8 Not Working in PuTTY when using SSH Remote command
what is the value of $TERM on the remote machine? Also, please explain the meaning of "remote command in the connection" ... is this ssh username@server -t 'tmux' or some variant?
Aug
21
comment ssh port forwarding from remote location to computers on server's network
Just wanted to come and give the final solution that I chose. The following two lines will work well in a shell script, and because of "sleep 60" it will automatically disconnect the port when I disconnect from the forwarded session. Also, this will open into a tmux session and close the ssh connection when detached (very handy for me :) )ssh -f2 -L $port:$localIP:22 workServer.com 'sleep 60' > /dev/null 2> /dev/null ; ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p $port localhost -t 'tmuxScript.sh' . It's a combination of things I found all over the web and here.
Aug
19
comment ssh port forwarding from remote location to computers on server's network
@eldering , Thanks so much. Right now I have $ ssh -N workServer.com -L 12345:192.168.x.y:22 &, and it seems to work great! Thanks a lot to both of you.
Aug
19
comment ssh port forwarding from remote location to computers on server's network
Thanks a lot for your post. After reading some other things and seeing your post, I think this almost gets me where I want to be. First, on homeC I run $ ssh workServer.com -L 2020:192.168.x.y:22, which actually takes me to workServer, but I can run in another shell ssh -p 2020 localhost to get me from homeC to 192.168.x.y (on workServer). That's rather convenient, but is there a way to suppress the original command from taking me to workServer in the terminal (ie. perform this action in the background, maybe a line in my bash profile?). Thanks a lot for the advice