Tagged Questions
1
vote
1answer
24 views
Can't run 'rails' inside Tmux session in Terminal
I just tried rails inside a tmux session in iTerm2 and it returns as
-bash: /usr/bin/rails: /usr/bin/ruby: bad interpreter: No such file or directory
I can run rails outside of tmux . I am using ...
1
vote
1answer
19 views
TMUX: Configure length of titles
I have tmux configured to show my current working directory for each window (it gets this from bash)
The problem is, sometimes the directory names get too long and it takes up a lot of space.
In ...
5
votes
1answer
145 views
Tmux current pane border not obvious
I'm struggling to tell which pane is the current one in tmux if there are only two. The border only seems to highlight the adjoining edge which makes it impossible to tell. Here's a Gif to highlight ...
2
votes
1answer
597 views
run or send a command to a tmux pane in a running tmux session
I want to write a shell script which will attach to a named tmux session, select a window (or pane) in that session and run a command in that selected window (or pane).
How do I do this from a bash ...
0
votes
1answer
50 views
How to switch to another window when Ctrl + B does not work for tmux?
As we all know tmux is quite nice tool, but there are some scenarios that Ctrl+B cannot be used.
For example, when I sshd to server A and now I connect to A's tmux pty. So Ctrl+B is captured by ...
1
vote
1answer
116 views
change colours when running screen
I use gnome-terminal in Centos 5.
I have my terminal settings customized to use the colours I like.
However when I run screen (or tmux) the colours for my terminal input lines are always inverted. ...
0
votes
0answers
33 views
How to goto other end of highlighted text in copy-mode of tmux?
In GNU screen copy mode, I can type o to goto other end of highlighted text.
How to do it in tmux?
4
votes
2answers
1k views
How to close other windows in tmux?
I write some functions in .bashrc to make tmux easy to use:
#!/bin/bash
# .bashrc
# vim tmux
#----- --------------------
tabc() { tmux kill-window; }
tabe() { tmux new-window; }
tabf() ...
1
vote
1answer
647 views
tmux: set pane title to currently running command?
How can I make tmux to set pane_title automatically to currently running command?
Actually the setting automatic-rename is just what I want for pane_title, but for it's only for window_name.
3
votes
1answer
601 views
Difference between tmux and shell split options on iTerm2?
I currently switched to iTerm2 + VIM for my dev environment. I noticed that the last version of iTerm2 supports tmux and there were people using tmux to split the window into several sessions. I also ...
2
votes
2answers
592 views
Get current window number for bash prompt
I want to replace status bar with bash prompt displaying window number like ①. How can I get current window number in the shell?
There's TMUX_PANE env variable, unfortunately no TMUX_WINDOW.
The ...
2
votes
2answers
784 views
Sending commands to parent tmux session from vim
I have a split window setup with vim and Lynx in tmux. I'm trying to build a script so that I can send a custom command to vim which will save the script I'm working on, switch focus to the Lynx pane, ...
1
vote
1answer
1k views
Cannot resize tmux pane from bash script
Background and Problem:
I have created a tmux script to open a few windows. It works great but then I wanted to place a vertically split pane on one window and resize it to 5 characters tall. I ...
1
vote
2answers
971 views
Bash scripts with tmux to launch a 4-paned window
Can anyone help explain what's going on with tmux, bash, and exec? I'm trying to set up a tmux session with a 4-pane window. Ideally, I want to run a command in 3 of the panes: e.g. a Ruby Thin server ...
1
vote
4answers
2k views
Messed up keys in vim when running inside tmux
I have been playing with tmux and I'm loving it. However, there's an annoying issue when running vim inside it.
Somehow the arrow keys get remapped, but only on certain times, like when firing up ...