为 tmux 创建符号链接

Creating symlinks for tmux

你好,

我一直在尝试在 mac 上安装 tmux,我得到以下结果

**Lukes-Air:Haskell Luke$ brew install tmux**
Warning: tmux-2.1 already installed, it's says it's not linked

所以我试试

**Lukes-Air:Haskell Luke$ brew link tmux**
Linking /usr/local/Cellar/tmux/2.1... 
Error: Could not symlink etc/bash_completion.d/tmux
/usr/local/etc/bash_completion.d is not writable.
Lukes-Air:Haskell Luke$ 

那我试试

**Lukes-Air:Haskell Luke$ sudo brew link tmux**
Error: Cowardly refusing to 'sudo brew link'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.

我也试过了

**Lukes-Air:Haskell Luke$ brew link --overwrite tmux**
Linking /usr/local/Cellar/tmux/2.1... 
Error: Could not symlink etc/bash_completion.d/tmux
/usr/local/etc/bash_completion.d is not writable.

...有人知道我该如何解决这个问题吗?

我想通了

I did chmod 777 /usr/local/etc/bash_completion.d

然后 brew link tmux 成功了!