Compare commits

..

3 Commits

Author SHA1 Message Date
jay
b8fe144941 [feat] add new zsh plugin 2022-01-15 21:45:50 +08:00
jay
8574ed5967 [feat] add zsh search keybind 2022-01-15 21:45:37 +08:00
jay
88bd602f9d [feat] add zsh history search env 2022-01-15 21:45:22 +08:00
3 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,7 @@ else
start_agent; start_agent;
fi fi
export HISTORY_SUBSTRING_SEARCH_PREFIXED=1
export FLUTTER_ROOT="$HOME/apps/flutter" export FLUTTER_ROOT="$HOME/apps/flutter"
export GOPATH="$HOME/go" export GOPATH="$HOME/go"
export GOROOT="$HOME/apps/go" export GOROOT="$HOME/apps/go"

View File

@ -6,6 +6,9 @@ zle -N edit-command-line
bindkey '^[,' autosuggest-accept bindkey '^[,' autosuggest-accept
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M viins '^X^E' edit-command-line bindkey -M viins '^X^E' edit-command-line
# Add emacs-like keybind to viins mode # Add emacs-like keybind to viins mode
bindkey -M viins '^F' forward-char bindkey -M viins '^F' forward-char

View File

@ -16,6 +16,8 @@ zinit light zdharma-continuum/fast-syntax-highlighting
zinit light zsh-users/zsh-completions zinit light zsh-users/zsh-completions
zinit light mattbangert/kubectl-zsh-plugin zinit light mattbangert/kubectl-zsh-plugin
zinit light zsh-users/zsh-history-substring-search
# OhMyZSH Plugs # OhMyZSH Plugs
zinit snippet OMZ::lib/completion.zsh zinit snippet OMZ::lib/completion.zsh
zinit snippet OMZ::lib/git.zsh zinit snippet OMZ::lib/git.zsh