【问题标题】:zsh configuration in tmuxtmux 中的 zsh 配置
【发布时间】:2022-07-24 19:15:08
【问题描述】:

我正在使用tmuxzsh

当我在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配置?

【问题讨论】:

    标签: zsh tmux


    【解决方案1】:

    问题是 tmux 没有正确渲染 manjaro 配置中的 UTF-8 字符。试试 tmux -u 来解决这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-26
      • 1970-01-01
      • 2013-06-28
      • 2013-10-29
      • 1970-01-01
      • 2018-08-05
      相关资源
      最近更新 更多