【发布时间】:2022-07-24 19:15:08
【问题描述】:
我正在使用tmux 和zsh。
当我在tmux 外面时,zsh 会根据.zshrc 使用一些 Manjaro 设置进行自定义
# Use powerline
USE_POWERLINE="true"
# Source manjaro-zsh-configuration
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
source /usr/share/zsh/manjaro-zsh-config
fi
# Use manjaro zsh prompt
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
source /usr/share/zsh/manjaro-zsh-prompt
fi
# Use ssh-agent
if [[ -e /home/marcosh/ssh-agent.zsh ]]; then
source /home/marcosh/ssh-agent.zsh
fi
source /usr/share/nvm/init-nvm.sh
当我在 tmux 内部时,尽管它使用的是 zsh,但缺少自定义。这是我的.tmux.conf
set-option -g history-limit 50000
# sane scrolling
set-option -g mouse on
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
# new pane on same folder
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# use zsh instead of bash
set -g default-command /usr/bin/zsh
我应该怎么做才能在tmux内部和外部获得相同的zsh配置?
【问题讨论】: