mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 14:44:58 +08:00
Update zsh config
This commit is contained in:
parent
cb8bd2892f
commit
2ddf5a5c4b
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue