forked from DustVoice/dotfiles
Add zsh-completions and modify keybindings
This commit is contained in:
parent
4a60420369
commit
77bf134492
3 changed files with 18 additions and 17 deletions
21
.gitmodules
vendored
21
.gitmodules
vendored
|
@ -4,15 +4,18 @@
|
|||
[submodule ".config/nvim"]
|
||||
path = .config/nvim
|
||||
url = git@github.com:DustVoice/nvim.git
|
||||
[submodule ".zsh/plugins/zsh-vim-mode"]
|
||||
path = .zsh/plugins/zsh-vim-mode
|
||||
url = https://github.com/softmoth/zsh-vim-mode
|
||||
[submodule ".zsh/plugins/zsh-autosuggestions"]
|
||||
path = .zsh/plugins/zsh-autosuggestions
|
||||
url = https://github.com/zsh-users/zsh-autosuggestions
|
||||
[submodule ".zsh/plugins/zsh-syntax-highlighting"]
|
||||
path = .zsh/plugins/zsh-syntax-highlighting
|
||||
url = https://github.com/zsh-users/zsh-syntax-highlighting
|
||||
[submodule ".oh-my-zsh"]
|
||||
path = .oh-my-zsh
|
||||
url = https://github.com/ohmyzsh/ohmyzsh.git
|
||||
[submodule ".zsh/plugins/zsh-vim-mode"]
|
||||
path = .zsh/plugins/zsh-vim-mode
|
||||
url = https://github.com/softmoth/zsh-vim-mode.git
|
||||
[submodule ".zsh/plugins/zsh-autosuggestions"]
|
||||
path = .zsh/plugins/zsh-autosuggestions
|
||||
url = https://github.com/zsh-users/zsh-autosuggestions.git
|
||||
[submodule ".zsh/plugins/zsh-syntax-highlighting"]
|
||||
path = .zsh/plugins/zsh-syntax-highlighting
|
||||
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||
[submodule ".zsh/plugins/zsh-completions"]
|
||||
path = .zsh/plugins/zsh-completions
|
||||
url = https://github.com/zsh-users/zsh-completions
|
||||
|
|
1
.zsh/plugins/zsh-completions
Submodule
1
.zsh/plugins/zsh-completions
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit a6e641b977373740e9744182e6fad9af9ff39bc5
|
13
.zshrc
13
.zshrc
|
@ -84,16 +84,13 @@ MODE_CURSOR_VISUAL="magenta steady block"
|
|||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
# plugins=(git)
|
||||
plugins=(colored-man-pages colorize command-not-found git zsh-autosuggestions zsh-syntax-highlighting history-substring-search zsh-vim-mode)
|
||||
plugins=(colored-man-pages colorize command-not-found git zsh-completions zsh-autosuggestions zsh-syntax-highlighting history-substring-search zsh-vim-mode)
|
||||
|
||||
autoload -U compinit && compinit
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
bindkey -M vicmd 'K' history-substring-search-up
|
||||
bindkey -M vicmd 'J' history-substring-search-down
|
||||
|
||||
bindkey -M vicmd 'L' autosuggest-accept
|
||||
bindkey -M vicmd 'H' autosuggest-clear
|
||||
bindkey -M vicmd '$' autosuggest-accept
|
||||
bindkey -M vicmd '0' autosuggest-clear
|
||||
bindkey -M vicmd '^K' history-substring-search-up
|
||||
bindkey -M vicmd '^J' history-substring-search-down
|
||||
|
||||
gpg-connect-agent updatestartuptty /bye
|
||||
|
|
Loading…
Reference in a new issue