mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Sync from WSL
This commit is contained in:
parent
ee4b1ba440
commit
ed7d66fce1
6 changed files with 40 additions and 8 deletions
|
|
@ -6,8 +6,12 @@ HIST_STAMPS="yyyy-mm-dd"
|
|||
# Plugins (Manually Managed) #
|
||||
# $ZDOTDIR/plugins
|
||||
|
||||
source $ZDOTDIR/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
# echo "[DEBUG] Loading plugins..."
|
||||
# echo $ZDOTDIR
|
||||
# Load zsh-syntax-highlighting before zsh-history-substring-search
|
||||
# Reference: https://github.com/zsh-users/zsh-history-substring-search?tab=readme-ov-file#usage
|
||||
source $ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source $ZDOTDIR/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source $ZDOTDIR/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
|
||||
# Tools Related Environment Variables #
|
||||
|
|
@ -65,6 +69,10 @@ alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
|||
# ~/.z -> $XDG_DATA_HOME/z
|
||||
export _Z_DATA="$XDG_DATA_HOME/z"
|
||||
# ~/.zcompdump* -> $XDG_CACHE_HOME/zsh/zcompdump*
|
||||
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
||||
# compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
||||
# ~/.zsh_history -> $XDG_STATE_HOME/zsh/history
|
||||
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||
|
||||
# https://unix.stackexchange.com/questions/33994/
|
||||
# Use `set -k` to mark leading `#` as a comment character
|
||||
set -k
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ bindkey -v # Vi Keybindings
|
|||
|
||||
# Colemak hnei
|
||||
# bindkey -M vicmd 'h' vi-backward-char # No change
|
||||
bindkey -M vicmd 'n' down-line-or-history
|
||||
bindkey -M vicmd 'e' up-line-or-history
|
||||
bindkey -M vicmd 'i' vi-forward-char
|
||||
bindkey -M vicmd 'n' down-line-or-history
|
||||
bindkey -M vicmd 'e' up-line-or-history
|
||||
bindkey -M vicmd 'i' vi-forward-char
|
||||
|
||||
# Similar position to [i] in QWERTY
|
||||
bindkey -M vicmd 'l' vi-insert
|
||||
|
|
@ -17,4 +17,7 @@ bindkey -M vicmd 'K' vi-rev-repeat-search
|
|||
bindkey -M vicmd 'j' vi-forward-word-end
|
||||
bindkey -M vicmd 'J' vi-forward-blank-word-end
|
||||
# Use N to Join
|
||||
bindkey -M vicmd 'N' vi-join
|
||||
bindkey -M vicmd 'N' vi-join
|
||||
|
||||
# Search History with [r]everse (default emacs keybinding)
|
||||
bindkey '^R' history-incremental-search-backward
|
||||
|
|
|
|||
|
|
@ -6,4 +6,6 @@ alias ....="cd ../../.."
|
|||
alias .....="cd ../../../.."
|
||||
alias ......="cd ../../../../.."
|
||||
|
||||
eval "$(zoxide init zsh)"
|
||||
function - { cd - }
|
||||
|
||||
eval "$(zoxide init zsh)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue