Questions tagged [tmux]
tmux is a 'terminal multiplexer'. It allows for having multiple 'windows' in a single terminal window.
57
questions
1
vote
0
answers
17
views
Changing tmux "normal" mouse from fn key to ctrl key
When running tmux in a terminal window, I can get the usual terminal mouse behavior by holding down the fn key.
When using an external keyboard, I do not have a fn key. How can I map this behavior to ...
1
vote
0
answers
142
views
tmux prefix+tab not working
Moving from Ubuntu to Mac
Using latest Tmux
In ubuntu, prefix+tab will show a popup with commands w/ fzf to select
In Mac nothing happens
No keys attached to Tab
0
votes
0
answers
30
views
Tmux under ancient Mac OS for PowerPC
Due to a need to support a limited and shrinking audience of Mac PowerPC users, I have a PowerMac G5 running Mac OS 10.5.8 as a build server. I am trying to use a recent tmux 3.3a install on it via ...
0
votes
1
answer
113
views
How do I re-enable iTerm permissions to use AppleScript app control
I have some AppleScript, to bulk export URLs and titles of tabs from my browser.
It used to work, from iTerm (and Terminal, and Script Editor).
I keep my terminal as long-running sessions in tmux that ...
1
vote
0
answers
477
views
Control-Option-<arrow> hotkey not working in tmux
I'm using tmux over iTerm2 in Mac OS 12.5.
I have such directives in tmux config file:
# resizing panes using Ctrl-Alt-arrows without prefix
bind -n C-M-Up resize-pane -U 2
bind -n C-M-Down resize-...
3
votes
1
answer
2k
views
Operation not permitted when accessing Downloads folder
When I try to ls the ~/Downloads folder on my mac I get a ls: Downloads: Operation not permitted error. My user does have rwx permissions on the folder. I can look at the folder just fine in finder. I ...
2
votes
0
answers
129
views
open command partially not working in tmux in MacOS
When inside a tmux session on the local computer, a command:
open "https://www.google.com"
opens a url in the default browser.
However, when trying to open a file using an app:
open -a ...
1
vote
0
answers
437
views
No colors in zsh for first tmux session
When I start a new tmux session (macOS 11.5.1, iTerm2 3.4.10, zsh 5.8, tmux 3.2a) with tmux new, my terminal has no colors, it just displays everything in grey tones. But when creating a new window or ...
1
vote
0
answers
110
views
tmux's extraneous visual bells in iTerm2
I recently started using tmux, I rely on visual bells (see Preferences -> Appearance -> Tabs -> Show new-output indicator) in iTerm2 to let me know when processes start/finish. When I start ...
0
votes
1
answer
470
views
how to bind double tapping the shift key in tmux
i spent some time yesterday trying to figure out how i can bind a double tap -esque key binding for tmux, and made some progress, but still incomplete.
i am hoping to maximize/minimize a pane within a ...
1
vote
1
answer
94
views
What is the difference between these two cursors, with tmux?
When running iTerm2 / Tmux, I have this cursor:
but when I hold the alt/option key, I have this cursor:
what is the difference?
0
votes
0
answers
117
views
Giving camera access to tmux or ssh
I have a couple of executables that I need to call, and within them some OpenCV functions are called, requiring camera access.
If I run the executable locally on Terminal from my machine, everything ...
1
vote
0
answers
39
views
Using "New Terminal at Folder" with tmux?
I like to use tmux with Terminal so that I can easily split panes, switch off of long-running tasks, or just close the Terminal window and re-open it to find myself exactly where I left off.
Although ...
3
votes
1
answer
1k
views
Passing alt/opt key sequence over ssh to remote host with iTerm
Just learning the ropes of my new MacBook Pro.
I have a linux workstation at the office that I use to host a number of tmux sessions, which represent whatever Im working on at a given time.
If out ...
4
votes
2
answers
2k
views
How can I limit iTerm2 text selection to a single tmux pane?
I have a late 2013 MacBook Pro running iTerm2. I don't have tmux installed on it, but I use tmux on the remote Linux host I frequently connect to via ssh. When tmux is displaying a vertical split and ...
0
votes
0
answers
595
views
tmux + iTerm2 - no permission to edit crontab
I am running macOS 10.14.5, iTerm2 build 3.2.8, tmux 2.9a (tmux -V).
I've granted both iTerm2.app and Terminal.app (file permission: .r-xr-xr-x) Full Disk Access (FDP) in Sys prefs > Security and ...
0
votes
1
answer
170
views
How to render a specific character as transparent in terminal
I'm looking for a way of rendering a single character / escape sequence as transparent in iTerm2 or, if there is one, any other terminal emulator. With transparent I mean that it should show the ...
3
votes
0
answers
418
views
tmux: Control + Shift + Tab & iTerm2
How do enable Control + Shift + Tab and Control + Tab for tmux in iTerm2 for macOS?
This question may be better suited for Unix & Linux Stack Exchange or Super User, except the configuration is ...
2
votes
1
answer
828
views
status line in iterm integrated with tmux
I was trying to set the iTerm and tmux integration and found that panes could be displayed as iTerm2 window splits, if I run tmux -CC. But there is a problem, this 'simulation' of tmux does not have ...
2
votes
4
answers
6k
views
Why does F4 not work in MacOS X (Touchbar macBook, or macBook Air)?
I'm using iterm2 together with tmux and I need the function keys. Ever since I got the TouchBar Macbook Pro and upgraded to HighSierra, the F4 key became disfunctional in iTerm2 and emacs.
The F4 key ...
0
votes
1
answer
405
views
Hotkeys don't work in zsh when $TERM is set to screen-256color
As per various other discussions I bound opt+<- to 0x1b 0x62and opt+-> to 0x1b 0x66. This works great in zsh, but not in tmux.
In tmux opt+<- does jump backwords per word, but also seems to do ...
1
vote
1
answer
569
views
Entering Unicode Characters with `ssh ... tmux -CC a -t mySession` on iTerm2
When I ssh into the server and then open tmux, I'm able to enter in Unicode characters. It seems that the problem is specifically with sshing directly with tmux -CC a -t mySession.
Edit:
I'm trying ...
4
votes
1
answer
4k
views
tmux jump words as with zsh
I moved from just using zsh to using zsh inside tmux. As my terminal is iTerm2 for both combinations.
I have the following lines in my .zshrc to enable jumping words on a bare zsh command line using ...
1
vote
1
answer
302
views
Macvim can not load custom Powerline fonts when started from tmux session
I have a really strange issue with MacVim + Tmux + Powerline Fonts.
I can run MacVim from the dock or terminal and it correctly starts with Powerline fonts.
When I start a tmux session, and launch ...
4
votes
1
answer
4k
views
How to switch off sharing of history between iTerm2 tabs when setopt command not found
I am experiencing the same problem as in this question: The history is shared between my iTerm2 terminal tabs: how can I switch that off?. As the user describes, my history is shared between different ...
0
votes
1
answer
593
views
Under tmux, change window in Irssi with meta key Alt + Num?
I think this is specific to OS X Terminal.app
Viewing many windows in irssi via tmux.
I can use alt+right arrow to move windows as the metakey.
but alt+5 only produces [KH^
4
votes
1
answer
1k
views
ssh under tmux always asks for password
Normally I give my passphrase for the private key on the first ssh invocation and then I am not asked for the passphrase (in this and all other bash sessions).
However, under tmux, I am asked for the ...
1
vote
1
answer
734
views
Mapping ⌘→ to ^Q→ in iTerm2 doesn't work
I'm trying to make iTerm2 and tmux play nicer with eachother (without using the builtin tmux functions; I'd like my windows and panes managed by myself).
Therefore, I want to map ⌘+→ to a key ...
5
votes
2
answers
2k
views
tic doesn't read from STDIN and segfaults when adding terminfo to support italics in tmux
I'm trying to follow these instructions to add italics support to tmux.
1) I tried running copying-pasting and running this command
cat <<EOF|tic -x -
tmux|tmux terminal multiplexer,
...
4
votes
1
answer
2k
views
tmux always modify my zsh PATH
I'd like to use tmux inside my iTerm2.
and I have the following in my ~/.tmux.conf file.
set-option -g default-shell /bin/zsh
set-option -g default-command "/bin/zsh -c 'which reattach-to-user-...
6
votes
1
answer
3k
views
Terminal.app and tmux session, can't use "open" command (without tmux it works)
I use Terminal.app and a tmux session.
> open -a VLC file.mp4
The window server could not be contacted. open must be run with a user logged in at the console, either as that user or as root.
...
0
votes
2
answers
2k
views
Copying and pasting between tmux panes containing vim instances over SSH in Terminal.app
I use vim to develop Perl code on a remote Linux box running Debian Jesse. The machine is a virtual machine running in VirtualBox. I use ssh and then issue a vim <file> command to start editing ...
1
vote
1
answer
607
views
Cannot copy/paste anymore in tmux 2.1
I just update to tmux 2.1(OS X10.11.3 Terminal.app), and my .tmux.conf(accroding to http://joehanchoi.com/quick-fixes-for-tmux-2-1-on-osx/)
set-option -g mouse on
bind -n WheelUpPane if-shell -F -t =...
7
votes
4
answers
5k
views
I can't delete characters in tmux on macOS
I have searched around and the closes thing I could find to my issue is this:
https://stackoverflow.com/questions/23848061/cannot-get-delete-key-to-work-with-tmux-and-osx
I am running multiple ...
1
vote
0
answers
53
views
El Capitan Terminal.app keeps showing overlay
New terminal in El Capitan keeps showing this annoying overlay with tmux commands describing my current tmux session. How do I turn it off?
31
votes
2
answers
21k
views
unknown option: mode-mouse with iterm, tmux
I've reset my computer and now tmux is complaining about my .tmux.conf having these directives:
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-...
2
votes
1
answer
998
views
iTerm2 output broken since upgrade to El Capitan
Since I upgraded my OS X to El Capitan (10.11) the output of iTerm2 is completely messed up. See this example screenshot (iTerm2 on the left, Terminal.app on the right):
Update
I'm using iTerm 2.1.4 ...
24
votes
9
answers
25k
views
Copy to clipboard from Tmux in El Capitan
I am quite happy with the Terminal changes in El Capitan (see e.g. this question).
However, i can't figure out how to enable copying to system clipboard from within Tmux. For instance, now that I am ...
16
votes
2
answers
5k
views
Changes to Terminal in El Capitan
Can someone please describe the changes made to Terminal.app in El Capitan? I've just noticed that mouse events started working in Tmux, which is awesome!
I had the following set in my tmux.conf:
...
1
vote
0
answers
543
views
Mac Terminal (+bash +tmux +set-o vi) missing characters at end of line
Often when editing a historical bash command in vi mode (after pressing ↑), and then moving backwards in the text using b. When I begin editing the text after pressing i or a, the extra text I insert ...
0
votes
2
answers
1k
views
Why can't I use `launchctl setenv` from `tmux`?
If I'm running within tmux and I try to update an environment variable with launchctl, I see an error like this:
$ launchctl setenv GIT_SSH /opt/local/bin/ssh
Not privileged to set domain environment....
2
votes
2
answers
5k
views
Getting an unsuitable terminal error when opening tmux after switching to homebrew
Longtime macports user (tmux / 256color etc worked fine). Recently decided to switch over to homebrew. Have most things working again.
tmux throws the following error when launching (have not ...
4
votes
2
answers
5k
views
Can I make tmux scroll from my trackpad?
I want to set up iTerm2 to pass scroll events to tmux, so I can trivially enter (and exit) scrollback mode for whatever pane is active. Is this possible to do with iTerm2, or automation of some sort, ...
5
votes
2
answers
2k
views
Unable to run 'display notification' using osascript in a tmux session
If I run the following command in Apple Script Editor directly,
display notification "Hello, world"
I can see a notification as expected
However if I tried to invoke it via command line:
...
2
votes
1
answer
893
views
tmux hangs when re-attaching session after logout
Since Yosemite, my tmux, which I installed via MacPorts, "hangs" when I re-attach it after my user has logged out and logged in again. I.e. it cannot start new processes, like a new command line. The ...
2
votes
1
answer
2k
views
LSOpenURLsWithRole() failed with error 10810 in iTerm2 running tmux on Yosemite
[~%]open ~/Pictures/upload.png
LSOpenURLsWithRole() failed with error -10810 for the file /Users/bryanhunt/Pictures/upload.png.
Before this update I used to be able to open images, PDFs, etc. from ...
1
vote
1
answer
1k
views
fish shell suggests commands in tmux
I use fish shell, it's has option "suggests commands", so it is works like in the next screenshot.
Examle:
You type command git status. In the next time when you type just g or git fish give you ...
1
vote
1
answer
140
views
open in tmux fails for all files
I'm having some trouble nailing down a problem I've had with Yosemite for a few weeks now - when I issue the open command inside tmux, all files (PDFs, text files, applications, everything) fail to ...
3
votes
1
answer
159
views
Tmux hampers osascripts display notification
I like to show notifications from scripts using osascript -e 'display notification "Some text"'.
This works fine from the plain shell but it stop working when in tmux.
It just doesn't show the ...
23
votes
3
answers
19k
views
In iTerm2 Command Click on URLS does not work when inside a tmux session
When not inside a tmux session, Command-Click on URLs works flawlessly.
How can I make links clickable in iTerm2 when inside a tmux session?
When hitting Command the mouse pointer changes to the ...