Skip to main content
Share Your Experience: Take the 2024 Developer Survey
70 votes

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

brew uninstall --force tmux brew install tmux fixed it for me.
user226390's user avatar
26 votes

Copy to clipboard from Tmux in El Capitan

If you use iTerm2 3.x, you can make copy / paste work by enabling Applications in terminal may access clipboard: Just highlight text with your mouse to copy it into the OS X clipboard! You can also ...
Jerome Dalbert's user avatar
23 votes

Copy to clipboard from Tmux in El Capitan

If you hold the function key down you can select and copy to clipboard with apple+c as well.
amohr's user avatar
  • 331
15 votes
Accepted

How can I limit iTerm2 text selection to a single tmux pane?

I had the same question and it was hard to google answer. Choosing Edit > Selection Respects Soft Boundaries works fine.
IFLED's user avatar
  • 166
13 votes
Accepted

Terminal.app and tmux session, can't use "open" command (without tmux it works)

The command is supposed to move the tmux process from a newly created bootstrap context under the root, to the user's login bootstrap context. To explain that in slightly more common terms: macOS (...
jksoegaard's user avatar
  • 78.2k
9 votes
Accepted

tic doesn't read from STDIN and segfaults when adding terminfo to support italics in tmux

So this works for me, notice I edited use like @mtklr suggested: # A screen-256color based TERMINFO that adds the escape sequences for italic. # run to add to term db: tic tmux.terminfo tmux|tmux ...
Bret Fisher's user avatar
9 votes

I can't delete characters in tmux on macOS

To fix backspace on Apple M1 Pro OSX 12.4, tmux 3.3a I had to do the following brew install ncurses $(brew --prefix)/opt/ncurses/bin/infocmp tmux-256color > ~/tmux-256color.info tic -xe tmux-...
rado's user avatar
  • 191
7 votes

Can I make tmux scroll from my trackpad?

As seen in this related issue: https://stackoverflow.com/questions/11832199/tmux-set-g-mouse-mode-on-doesnt-work The command to enable scrolling & easy copy to clipboard highlighting is the ...
zkjellberg's user avatar
7 votes
Accepted

Operation not permitted when accessing Downloads folder

I fixed it by removing and re-adding the folder permissions for iTerm.app in the Security & Privacy dialogue.
Philippe's user avatar
  • 739
6 votes

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

I have the same issue with tmuxinator, And get that error in my case I upgraded tmux with: brew upgrade tmux
anquegi's user avatar
  • 163
5 votes

tmux always modify my zsh PATH

After googling, I've found this: https://coderwall.com/p/4l16zq/pyenv-inside-tmux-with-zsh-on-a-mac http://pgib.me/blog/2013/10/11/macosx-tmux-zsh-rbenv/ And the fix to me is that (/etc/zprofile): #...
Alex's user avatar
  • 191
5 votes

Copy to clipboard from Tmux in El Capitan

Using tmux version 2.2 or later add the following to your tmux.conf file: bind-key -t emacs-copy MouseDragEnd1Pane copy-pipe "pbcopy" bind-key -t vi-copy MouseDragEnd1Pane copy-pipe "pbcopy"
Kyle Kloepper's user avatar
5 votes

Copy to clipboard from Tmux in El Capitan

The answer of @Oplatek take effect In default Terminal application go to View->"Allow mouse reporting" and uncheck it. But by this way, we would not be able to scroll the screen by ...
secfree's user avatar
  • 151
4 votes
Accepted

I can't delete characters in tmux on macOS

Tmux uses ^? for delete. stty was not sending ^?. I changed that using stty erase '^?' and then changed my preferences in iTerm2 for delete to send ^? https://github.com/tmux/tmux/issues/335
Nick Rucci's user avatar
4 votes

tic doesn't read from STDIN and segfaults when adding terminfo to support italics in tmux

The above solution didn't work for me, however, this did: 1. Create two files: File xterm-256color-italic.terminfo: # A xterm-256color based TERMINFO that adds the escape sequences for italic. xterm-...
IanEdington's user avatar
4 votes
Accepted

How to switch off sharing of history between iTerm2 tabs when setopt command not found

It's the history -a part of PROMPT_COMMAND in your .bashrc - that's appending to the history file every time a prompt is displayed, whatever tab you're using. A quick fix would be to remove this, so ...
John N's user avatar
  • 1,497
3 votes

ssh under tmux always asks for password

Open a new terminal window and run the following commands: $ tmux new -s temp $ ssh-agent $ ssh-add That seems to have fixed the issue for me; new tmux sessions now no longer ask me for my ssh key ...
John Wilger's user avatar
3 votes

In iTerm2 Command Click on URLS does not work when inside a tmux session

I ran into this issue today. I would command-click on a URL in iTerm2 (Mac) and the app would seemingly lose focus but the link wouldn't open in a browser (Chrome, in my case). This used to work fine ...
bergie3000's user avatar
3 votes

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

My tmux also started shooting this error recently. In my case simply calling brew upgrade tmux helped.
Bajena's user avatar
  • 31
2 votes
Accepted

Why can't I use `launchctl setenv` from `tmux`?

Running tmux as root is probably not a good idea. Someone has created a solution and explanation: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard After configuring tmux to use reattach-to-...
wdkendall's user avatar
2 votes

unknown option: mode-mouse with iterm, tmux

mode-mouse isn't support on tmux. Try use on ~/.tmux.conf set -g mouse on and run on terminal tmux source-file ~/.tmux.conf Work so good on my computer, it can scroll, change panes...
Tran Quoc Vuong's user avatar
2 votes

Entering Unicode Characters with `ssh ... tmux -CC a -t mySession` on iTerm2

Confirmed fixed w/ Iterm2 3.0.15 and tmux 2.5+ https://gitlab.com/gnachman/iterm2/issues/4664
max's user avatar
  • 21
2 votes
Accepted

tmux jump words as with zsh

If found the solution here https://superuser.com/questions/427163/altarrow-moving-between-words-in-zsh-and-iterm2 You have to adjust the keybindings for ⌥ ← and ⌥→ inside iTerm2
lony's user avatar
  • 161
2 votes

Passing alt/opt key sequence over ssh to remote host with iTerm

A terminal connection, such as created by SSH, basically transfers characters, not keystrokes. There are some exceptions to this, such as the "return" key and CTRL+letter combinations, because they ...
Ture Pålsson's user avatar
2 votes
Accepted

What is the difference between these two cursors, with tmux?

Normally when you for example select a piece of text in iTerm2, your mouse activity is reported to the application you're currently running (for example a text editor). That application decides what ...
jksoegaard's user avatar
  • 78.2k
1 vote

Why does F4 not work in MacOS X (Touchbar macBook, or macBook Air)?

I have seen elsewhere that some key combos stop working until you reinstall iTerm2. If you have homebrew and cask installed, you can use brew cask reinstall iterm2. (I'm so unsure about the efficacy ...
Jan Gronemann's user avatar
1 vote

Hotkeys don't work in zsh when $TERM is set to screen-256color

Seems like I finally found an answer! Or rather a workaround, since I'm still not sure what exactly is going wrong. Explicitly configuring the key binds for word navigation fixed the issue for me: ...
Strayer's user avatar
  • 171
1 vote
Accepted

Macvim can not load custom Powerline fonts when started from tmux session

I stumbled over the solution with some searching. The issue issue can be fixed with the reattach-to-user-namespace tool. $ brew install reattach-to-user-namespace Add the following line to the end ...
cmcginty's user avatar
  • 686
1 vote

Mapping ⌘→ to ^Q→ in iTerm2 doesn't work

I found this on iTerm2's FAQ page. I'm not sure if it answers your question. Let us know.
TMHahn's user avatar
  • 1,239
1 vote

Copying and pasting between tmux panes containing vim instances over SSH in Terminal.app

A better way to do it is save the selection in a temporary file and use tmux load-buffer command to load it into the paste buffer, and then C-b ] to paste. Otherwise you may have problems with long ...
Yury Ershov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible