Questions tagged [tmux]
tmux is terminal multiplexer software, allowing users to work with terminals using multiple windows and panes, which can be created, removed, attached, and reattached as needed.
1,104
questions
1
vote
2
answers
1k
views
tmux: line-wise text selction in vi copy mode
In tmux, I generally want to select whole lines for copying.
How can I select text line wise, like vi's V command?
1
vote
2
answers
2k
views
bash : Executing blocking script in Tmux
Im trying to run 2 scripts in 2 different TMUX panes from a bash file. The problem is that they are all blocking, so once I execute a process from one pane, I can't move to the other pane to execute ...
1
vote
0
answers
577
views
Can't scroll tmux context by more than one line at a time
On OS-X I can't scroll in T-mux by more than one line at a time.
I have tried the following things:
Ctrl+b then pg-up or pg-down.
Ctrl+b then [ then pg-up or pg-down.
Ctrl+b then shift+pg-up or ...
1
vote
1
answer
1k
views
ability to switch between panes has broken in tmux with vim
Ok, so I run vim inside of tmux and recently (today in fact) I suddenly can't use ctrl+hjkl to switch between panes in tmux and vim, instead it just makes the bell sound and refuses to switch.
If I ...
0
votes
1
answer
868
views
tmux GUI-based scrolling
GUI terminal emulators like xfce4-terminal have several ways of scrolling through the terminal's buffer. Primarily:
shift-(pgup/pgdown, home/end, up/down)
mouse wheel
clicking and dragging button on ...
5
votes
2
answers
425
views
How to load parts of bash alias only when logging in via ssh [duplicate]
As the title states, is it possible to have an alias only load when I access the machine through ssh, or better yet, only from a specific computer through ssh?
1
vote
1
answer
1k
views
Kerberos ticket in tmux session
I have two servers, on both I need to authenticate with kerberos. If I don't have a valid kerberos ticket, I cannot login on server A. On Server B, I can login without a kerberos ticket, it will ...
0
votes
0
answers
366
views
screen always clear screen upon exit - how to disable it
Seems that unlike less that can switch off clearing screen --
'less' command clearing screen upon exit - how to switch it off?
the screen always clear screen upon exit. That's very ...
2
votes
1
answer
550
views
Possible to set per-session/context-sensitive key bindings in tmux?
I do everything in tmux, so I have a stanza in my .bashrc to create/attach to a session whenever I enter a shell. Sometimes, I ssh into a machine that shares the same configuration. So I'm already in ...
1
vote
0
answers
751
views
Send a command to the currently attached tmux session from a bash script
I am inside a fresh tmux session called mysession, and I would like to split the window from the command line. I have read this post, but can't get the solution to work.
When I call this from within ...
1
vote
1
answer
3k
views
Left Arrow Key Not Working in Tmux Bash
Problem
When I'm in bash in tmux, I can't use the left arrow key (on my keyboard) to move the cursor left over text I've typed. No other characters show up, the cursor does not move, nothing happens....
6
votes
3
answers
4k
views
Shift-Arrow keys working in KiTTY but not PuTTY for nested tmux configuration
For years I have been using a different prefix key for nested instances on tmux. I use \ on my own server, but a for any other servers I connect to and start a nested tmux session.
I have found this ...
0
votes
1
answer
3k
views
How to make tmux work on a Google Cloud Platform linux vm?
The google docs says GCP uses tmux internally to make terminal sessions reattachable, but I cannot get tmux to work for me when I try to use it myself.
This is all that happens:
$ tmux
[exited]
...
2
votes
1
answer
418
views
Byobu status bar conflicts with vim-airline
I started using Byobu and found this interesting problem.
Then I run Vim with vim-airline plugin (status bar like powerline) inside byobu session, it interferes byobu status bar. The problem exists ...
11
votes
3
answers
4k
views
zsh crash when starting inside tmux with `zsh-newuser-install: startup files exist, aborting`
Every time I try to start zsh inside of tmux it crashes wwith
zsh-newuser-install: startup files exist, aborting
It worked flawless yesterday night, and suddenly this morning nothing works...
I'm ...
4
votes
2
answers
3k
views
tmux is exporting an environment variable that is no longer being exported in .bashrc
I'm having a really strange problem. Tmux is exporting an environment variable that I used to have exported in my ~/.bashrc, but which I have since removed (let's just call this $MYSTERIOUS_ENV_VAR. ...
1
vote
1
answer
1k
views
Avoiding "nested sessions" warning when using tmux from systemd
I want to use a single script to launch 2 sessions, a daemon session and a user session. I want the script to start upon boot without any users logged in.
The script I created works when launched ...
1
vote
1
answer
387
views
CMUS doesn't run correctly in TMUX session
As you can see in the screenshot, cmus doesn't display correctly inside tmux.
Normally, starting cmus directly works fine. But I ask because I want to use the detachable hack.
I can't figure out ...
11
votes
1
answer
18k
views
Using tmux - scrolling via ssh
Instead of ssh-ing from many terminal windows to a remote server, I deceded to start using tmux via one single ssh connection. There are things I cant seem to get working though.
The most important ...
1
vote
0
answers
242
views
tmux status bar keeps echoing on gnome terminal
I'm unable to find the search terms for this problem, so I've attached a screenshot. Every minute, the tmux status bar outputs a new status line instead of updating. This seems to happen mainly on ...
2
votes
0
answers
651
views
How do I use tmux 2.4's double/triple click to select text with bash/iTerm2?
Following on this question from 2013 and this question from 2015, has anyone identified how to use tmux 2.4's new Support for mouse double and triple clicks to select text without modifier keys? I'm ...
1
vote
1
answer
455
views
Launch or reattach a split GNU-screen, with each pane running its own command?
I want to be able to launch a command, like ./stats.sh, to open a screen (Or tmux, or whatever else if need be) that is either reattached if it already exists - or launched if it doesn't, running say, ...
5
votes
1
answer
6k
views
tmux doesn't use default shell
My tmux started to behave in a strange way, briefly.
Today I noticed that my tmux session does not start with a bash shell but instead it starts with ?(no idea). What I can see is just a dollar $.
...
0
votes
1
answer
188
views
Show invisible characters as code point box in tmux
As shown in the image below, tmux cann't show control character \0x1, i.e. C-A as Termite or Gnome-Terminal. Is there any option to turn on showing invisible character, or is it related to TERM and ...
2
votes
0
answers
2k
views
tmux gives no current session each time after enter a session on macOS
I'm running macOS Sierra and have tmux 2.4 installed. Once upon a time, I found I couldn't paste via "p" in vim, so I added below into my .tmux.conf
set -g default-command 'reattach-to-user-namespace ...
0
votes
1
answer
513
views
TMUX keeps asking my ssh passphrase since I updated to Sierra (macOS)
Just updated to MacOS Sierra and I've followed the prescribed fixes for what Apple broke with SSH and the keychain as detailed here (macOS keeps asking my ssh passphrase since I updated to Sierra)
...
1
vote
1
answer
1k
views
tmux on Windows Linux Subsystem yields spurious characters
Whenever I start up tmux on Windows, I get a bunch of weird characters that I have to delete:
^[[?1;0ceddie@OPTIMUS ~ $ 1;0c
Even if I comment out my .bashrc and .tmux.conf, I still get this. How ...
1
vote
1
answer
198
views
Mutt with TMUX, problems with external command
I set up mutt to look up my OS X Contacts, when I compose a new mail, start typing the name and hit <TAB> or <C> - t.
This works fine, gives me a list with suggestions.
set query_command =...
1
vote
1
answer
434
views
Run vim's :redraw! command after issuing tmux send-keys command
I'm running a command to send a keystroke to another vim buffer open in a tmux terminal:
:silent !tmux send-keys -t 1.left 'F7'
It works, but my originating terminal goes blank and I have to issue a ...
2
votes
1
answer
213
views
Tmux config echoed as shell input parameters
Good evening, i'm facing a pretty strange problem (at least i've never encountered something like it before) with my tmux config.
Some days ago i made some modifications to my tmux config file and now ...
10
votes
3
answers
7k
views
Is there any simple tmux/screen alternative?
I would like to connect to a terminal session/application running on different computer but without usage of terminal multiplexer as tmux or screen. I don't need split windows or sharing the terminal ...
0
votes
1
answer
418
views
Can't login after removing tmux
I'm on xubuntu 16.10. Just ran sudo apt remove tmux and it removed the package successfully.
Problem is, as soon as I try opening any terminal it just disappears.
I tried Ctrl+Alt+F2 to get a ...
4
votes
1
answer
4k
views
How to get last tmux lines?
I'm writting a script that's suppossed to open x number of tmux sessions, check for the last line and then, deppending on the output, do this or that, but I just can not find a way of saving tmux's ...
2
votes
0
answers
300
views
Byobu search highlighting
Is there a way to highlight search results in byobu scrollback mode?
1
vote
1
answer
1k
views
Why are my vim colors different within a tmux session in the macOS terminal?
I'm trying to figure out what's going on with my colors within vim in tmux. For some reason the colors seem correct everywhere except in vim. Every similar question I've found seemed to be resolved by ...
2
votes
1
answer
3k
views
Tmux over SSH in script
I'm trying to write a script which spawns multiple long-running commands on both a remote and local machine. Currently, an example of my solution would be:
#!/bin/bash
ssh -t [email protected] tmux new -...
1
vote
2
answers
644
views
How to stop tmux from minimizing terminal working area when accessing server through PuTTY?
Login to Debian server with PuTTY. Right-click on windows, select full screen. Have a nice big working area.
Type tmux and immediately the working area is reduced to a standard small terminal window. ...
9
votes
1
answer
3k
views
"tmux has-session" search is prefix-matching
I'm trying to determine if a tmux session exists by has-session command.
If I have a session named abcdf:
adm@VirtualBox:/$ tmux -V
tmux 2.1
adm@VirtualBox:/$ tmux ls
abcdf: 1 windows (created Fri ...
1
vote
0
answers
813
views
tmux fails to start in babun
I am trying to get tmux to work in babun. This basically means I am running zsh, oh-my-zsh, mintty and cygwin on Windows (64-bit Windows 7). Babun comes with a package manager, pact, that I used to ...
2
votes
1
answer
1k
views
Tmux: Single command to go to a specific pane
I have various tooling around tmux and history so I can trace back what happened where (in which pane, in particular).
inside my zsh preexec I am able to log out (for my custom shell command history ...
2
votes
1
answer
3k
views
Tmux if-shell condition always false
I'm trying to set my TERM environment variable for tmux sessions in my .tmux.conf based on the value of TERM inherited from the parent shell (which is bash). Note that I have the following line in my ....
2
votes
0
answers
652
views
Tmux in Urxvt. Esc key behaves like Meta
In Tmux I have assigned Alt+Arrows combinations (M+Left, M+Right, etc) to switch between panes. It's working ok in most cases.
But after changing pane with one of the Alt+Arrow combination every ...
0
votes
1
answer
1k
views
Libevent missing when building tmux, while it is there
I am trying to build tmux locally (no root, so no yum install possible).
On Centos7
I cannot build it...
~/build/tmux-2.3$ ./configure --prefix=/home/statquant/programs/
checking for a BSD-compatible ...
3
votes
1
answer
7k
views
How to make byobu work on Windows, using "Bash for Windows", on the Cmder (ConEmu) terminal?
I am using a vanilla install of Cmder (mini). Windows 10 with WSL (Windows Subsystem for Linux, Bash for Windows) installed. Using the following command to load bash in Cmder.
%windir%\system32\bash....
1
vote
1
answer
2k
views
Windows10: ubuntu bash shell + mintty: tmux copy selection
I'm using tmux under WSL Ubuntu bash shell in Windows 10 with mintty terminal (https://github.com/mintty/wsltty).
In tmux:
Ctrl+B, then Ctrl + Space I can make a selection (shown on screenshot). But ...
22
votes
2
answers
15k
views
Ctrl + arrow keys for tmux not working in PuTTY
I'm using PuTTY to ssh into a Debian machine. When I try to use Ctrl + [arrow key] to resize panes in tmux, the active pane just switches as if I was not holding Ctrl. Other Ctrl key shortcuts work ...
1
vote
1
answer
2k
views
line wrapping breaks intermittently (R, tmux, readline)
I often keep several R command-line interactive sessions running on my desktop at work, linked to vim with the vim-r-plugin (which is kind of like ESS). I use tmux to connect to them remotely, and ...
2
votes
0
answers
183
views
Making tmux let vim resize putty window
When using vim in a putty window, a resize command such as :set columns=161 will change the width of the putty window to match the new size. When running under tmux, putty doesn't get the command to ...
0
votes
1
answer
1k
views
Tmux command to move cursor right/left by one word
Outside of tmux, in my terminal (termite), hitting ctrl-right or ctrl-left will move the cursor right/left by one word. Inside of tmux, hitting those bindings only moves the cursor by one character. I ...
0
votes
1
answer
4k
views
Use tmux pane-border-format with vim to set pane titles
Inside my init.vim I have some code like this to set my window titles:
augroup Tmux "{{{2
au!
autocmd VimEnter,BufNewFile,BufReadPost * call system('tmux pane-border-format "#{pane_index} vim-' . ...