From 2ddf5a5c4bd83e7931e33a3119ab61be2e1ac065 Mon Sep 17 00:00:00 2001 From: rydesun Date: Thu, 16 Sep 2021 16:43:45 +0800 Subject: [PATCH] Update zsh config --- .config/zsh/zprofile | 2 +- .config/zsh/zshrc | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.config/zsh/zprofile b/.config/zsh/zprofile index f8bf353..686ed24 100644 --- a/.config/zsh/zprofile +++ b/.config/zsh/zprofile @@ -1,4 +1,4 @@ # Autostart X -if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then +if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then xinit qtile start -b x11 fi diff --git a/.config/zsh/zshrc b/.config/zsh/zshrc index b21ea53..fedc9d0 100644 --- a/.config/zsh/zshrc +++ b/.config/zsh/zshrc @@ -227,9 +227,9 @@ first-tab() { zle -N first-tab bindkey '^I' first-tab -# 让 / 作为分隔符 +# 让 / = 作为分隔符 # 默认 WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' -export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>' +export WORDCHARS='*?_-.[]~&;!#$%^(){}<>' # >>>----------------------------------- @@ -249,6 +249,7 @@ alias mitmweb="mitmweb --set confdir=$XDG_CONFIG_HOME/mitmproxy" if [[ $TERM == 'xterm-kitty' ]]; then alias ssh='kitty +kitten ssh' alias rg='kitty +kitten hyperlinked_grep' + alias icat='kitty +kitten icat' fi alias sl='ls' @@ -266,6 +267,7 @@ if [[ -e $_ENV_NVIM ]]; then else alias e='nvim' && compdef e=nvim fi +alias d='delta' && compdef d=delta alias g='git' && compdef g=git alias cfg='GIT_DIR=$HOME/.myconf GIT_WORK_TREE=$HOME git' && compdef cfg=git alias cfg.e='GIT_DIR=$HOME/.myconf GIT_WORK_TREE=$HOME nvim' && compdef cfg.e=nvim