mirror of
https://github.com/rydesun/dotfiles.git
synced 2026-02-22 21:05:51 +08:00
Fix zsh error msg
This commit is contained in:
parent
5174676877
commit
72daa373ca
2 changed files with 9 additions and 5 deletions
11
.zprofile
11
.zprofile
|
|
@ -42,7 +42,7 @@ export HISTFILE="$XDG_DATA_HOME"/zsh/history
|
|||
|
||||
### 终端
|
||||
export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
|
||||
export MANPAGER="nvim +Man! --cmd 'let pager=1'"
|
||||
export MANPAGER="nvim +Man!"
|
||||
|
||||
### GnuPG
|
||||
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||
|
|
@ -89,12 +89,15 @@ export GLFW_IM_MODULE=ibus
|
|||
# }}}
|
||||
|
||||
# 同步所有环境变量到所有systemd将要启动的程序
|
||||
dbus-update-activation-environment --systemd --all
|
||||
command -v dbus-update-activation-environment &>/dev/null && \
|
||||
dbus-update-activation-environment --systemd --all 2>/dev/null
|
||||
|
||||
# NOTE: 直接在登录shell中自启桌面环境
|
||||
# 只在桌面环境使用中文
|
||||
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||
dbus-update-activation-environment --systemd LANG=zh_CN.UTF-8
|
||||
# 只在桌面环境使用中文
|
||||
command -v dbus-update-activation-environment &>/dev/null && \
|
||||
dbus-update-activation-environment --systemd LANG=zh_CN.UTF-8 2>/dev/null
|
||||
|
||||
if true; then
|
||||
LANG=zh_CN.UTF-8 xinit qtile start
|
||||
else
|
||||
|
|
|
|||
3
.zshrc
3
.zshrc
|
|
@ -59,7 +59,8 @@ setopt hist_ignore_space # 不记录空格开头的命令
|
|||
if [[ -f "$Z_ZINIT_BIN" ]]; then
|
||||
source "$Z_ZINIT_BIN"
|
||||
else
|
||||
echo "zinit not found" >/dev/stderr
|
||||
echo "zinit: not found" >/dev/stderr
|
||||
zinit() {}
|
||||
fi
|
||||
|
||||
declare -A ZINIT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue