多年来,我一直喜欢使用tmux。今天早上,我的macOS机器上的homebrew将tmux的版本更新到了3.1。现在tmux无法启动。 这是我的.tmux.conf # Set the prefix from C-b to C-a
set -g prefix C-a
unbind C-b
# Set the delay between prefix and command
set -s escape-time 1
# Set the base index for windows and panes
set -g base-index 1
setw -g pane-base-inde
我正在尝试编写一个启动Alacritty和tmux的苹果脚本。在我运行Alacritty时,除了脚本之外的所有部分都在运行,我希望它在运行后立即退出(在这两种情况下,tmux会话都存在或不存在)。
set t to (time of (current date))
do shell script "nohup /Applications/Alacritty.app/Contents/MacOS/alacritty -e /usr/local/bin/tmux attach || tmux new -s general > /dev/null 2>&1 &&
我有两个终端会话,一个运行Vim,另一个运行Python (或iPython) REPL。
我正在寻找一种使Vim与REPL会话动态互操作的方法。
作为所需行为的示例,假设我在Vim中打开了这个Python文件:
1 x = 40
2 y = 2
3 z = x + y
4 print('The answer is {}'.format(z))
5 print('The product of {} and {} is {}'.format(x, y, x*y))
我在iPython REPL会话中键入这些条目:
In [1]: x = 10
我在MacOS Catalina上。我正在尝试运行一个cron作业,它会在windows上生成一个命名的tmux会话。这是crontab -l
* * * * * cd /Users/dev/project; ./start.sh; ./poll 2>> /tmp/cron.out
然而,我没有看到我与tmux ls的会话。在我的错误日志中cat /tmp/cron.out
./poll: line 3: tmux: command not found
./poll: line 5: tmux: command not found
这是我正在运行的脚本。我已经为我的用户安装了tmu
我在linux (远程)机器上通过ssh从macOS上的iTerm2运行tmux。
我已经配置了.tmux.conf,以便通过以下方式让鼠标滚轮在tmux中滚动:
set -g mouse on
这使鼠标滚轮滚动,复制到剪贴板上的鼠标拖动和其他。
我可以保持鼠标滚轮滚动,但同时禁用鼠标拖动到剪贴板时的复制吗?
我使用brew install vim和brew install tmux安装了Vim和tmux,当以zsh作为默认外壳在tmux之外运行vim --version时,我得到如下信息:
macOS version - arm64
Included patches: 1-3550
Compiled by Homebrew
这就是我想要的。但是,当在tmux会话中运行vim --version时,我得到以下内容:
macOS version
Included patches: 1-2029
Compiled by root@apple.com
这不是我想要的。
我在想,这可能与我的处理器的arm6