Questions tagged [tmux]

tmux is a 'terminal multiplexer'. It allows for having multiple 'windows' in a single terminal window.

Filter by
Sorted by
Tagged with
2 votes
0 answers
26 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 ...
user avatar
1 vote
0 answers
175 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 ...
user avatar
  • 181
1 vote
0 answers
25 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 ...
user avatar
0 votes
1 answer
199 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 ...
user avatar
  • 189
1 vote
1 answer
45 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?
user avatar
  • 309
0 votes
0 answers
65 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 ...
user avatar
  • 283
1 vote
0 answers
32 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 ...
user avatar
3 votes
1 answer
675 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 ...
user avatar
  • 131
3 votes
2 answers
939 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 ...
user avatar
0 votes
0 answers
417 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 ...
user avatar
  • 1,076
0 votes
1 answer
98 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 ...
user avatar
  • 195
3 votes
0 answers
277 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 ...
user avatar
  • 1,566
2 votes
1 answer
666 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 ...
user avatar
  • 21
2 votes
4 answers
5k 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 ...
user avatar
  • 1,212
0 votes
1 answer
341 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 ...
user avatar
  • 171
1 vote
1 answer
453 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 ...
user avatar
  • 111
4 votes
1 answer
3k 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 ...
user avatar
  • 161
1 vote
1 answer
265 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 ...
user avatar
  • 507
2 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
538 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^
user avatar
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 ...
user avatar
  • 1,096
0 votes
1 answer
617 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 ...
user avatar
  • 131
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, ...
user avatar
4 votes
1 answer
1k 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-...
user avatar
  • 191
6 votes
1 answer
2k 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. ...
user avatar
  • 3,323
0 votes
2 answers
1k 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 ...
user avatar
  • 1,214
1 vote
1 answer
517 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 =...
user avatar
  • 761
2 votes
1 answer
3k views

I can't delete in tmux

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 OSX and I am ...
user avatar
1 vote
0 answers
49 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?
user avatar
31 votes
2 answers
19k 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-...
user avatar
2 votes
1 answer
940 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 ...
user avatar
  • 353
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 ...
user avatar
  • 693
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: ...
user avatar
  • 693
1 vote
0 answers
436 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 ...
user avatar
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....
user avatar
  • 103
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 ...
user avatar
  • 349
3 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, ...
user avatar
5 votes
2 answers
1k 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: ...
user avatar
  • 1,939
2 votes
1 answer
777 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 ...
user avatar
  • 2,312
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 ...
user avatar
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 ...
user avatar
  • 119
1 vote
1 answer
132 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 ...
user avatar
  • 33
3 votes
1 answer
149 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 ...
user avatar
  • 3,923
19 votes
3 answers
16k 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 ...
user avatar
  • 613
2 votes
1 answer
1k views

What's a good key binding for tmux on OS X?

The default tmux binding is ctrl+b, which is pretty awkward to hit on a Mac keyboard, because there's no right control. C-a was the default in screen, but that's the default in OS X for going to the ...
user avatar
  • 121
10 votes
1 answer
12k views

What are the differences between terminal types supported by iTerm2?

I am looking for a brief comparison of the terminal types supported by iTerm2, mainly to see what setup to pick in order to minimize problems. Mainly, I am connecting with Linux (Debian/Ubuntu) ...
user avatar
  • 26.8k
0 votes
1 answer
1k views

New mac - installed tmux but can't use mouse in for pane switching

I have the required setw / setg setting for mouse in my .tmux.conf but they aren't working. I've done tmux source-file .tmux.conf I can use tmux and split windows with my remapped keys and other ...
user avatar
1 vote
1 answer
575 views

XQuartz is not starting from within tmux

I'm using the standard apple terminal with zsh as my default shell. In my ~/.zprofile (equivalent of .profile) I have the following line: [[ $TERM != "screen" ]] && exec tmux This basically ...
user avatar
  • 3,923
46 votes
8 answers
22k views

Installing tmux but getting "dyld: Library not loaded Referenced from: /usr/"

I try to do brew install tmux it installs, but, probably due to previous failed and not fully removed non-brew attempts to install both it and libevent, when try to use tmux I get $ tmux dyld: ...
user avatar
10 votes
1 answer
23k views

How to remap tmux split pane keys?

On my linux machines, for my terminal shell I have tmux keys mapped to allow me to split windows and then switch between new panes. With or without these mappings I can't figure out how to remap the ...
user avatar