首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >tmux中的zsh配置

tmux中的zsh配置
EN

Stack Overflow用户
提问于 2022-03-17 08:59:40
回答 1查看 619关注 0票数 1

我正在使用tmuxzsh

当我在tmux之外时,zsh是用一些Manjaro设置定制的,就像.zshrc那样

代码语言:javascript
复制
# 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

代码语言:javascript
复制
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配置应该做什么?

EN

回答 1

Stack Overflow用户

发布于 2022-07-24 11:15:08

问题是tmux没有正确地呈现来自manjaro配置的UTF-8字符。

要解决这一问题:

tmux -u

来自tmux手册:

代码语言:javascript
复制
-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.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71509514

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档