我正在使用tmux和zsh。
当我在tmux之外时,zsh是用一些Manjaro设置定制的,就像.zshrc那样
# 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在zsh内部和外部获得相同的tmux配置应该做什么?
发布于 2022-07-24 11:15:08
问题是tmux没有正确地呈现来自manjaro配置的UTF-8字符。
要解决这一问题:
tmux -u
来自tmux手册:
-u Write UTF-8 output to the terminal even if the first
environment variable of LC_ALL, LC_CTYPE, or LANG that
is set does not contain "UTF-8" or "UTF8". This is
equivalent to -T UTF-8.https://stackoverflow.com/questions/71509514
复制相似问题