Mercurial > dotfiles
comparison dot_zshrc @ 531:5d57fac601e3
Add zsh autosuggest plugin
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 23 Jan 2022 11:43:54 +0100 |
parents | ee04e4821479 |
children | 22fb4745cb1b |
comparison
equal
deleted
inserted
replaced
530:5e6d724bcd65 | 531:5d57fac601e3 |
---|---|
1 # vim:ft=zsh | 1 # vim:ft=zsh |
2 | 2 |
3 source ~/.zsh/zsh-history-substring-search.zsh | 3 source ~/.zsh/zsh-history-substring-search.zsh |
4 export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=green,fg=black' | 4 export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=green,fg=black' |
5 | |
6 source ~/.zsh/zsh-autosuggestions.zsh | |
5 | 7 |
6 export TERM=xterm-256color | 8 export TERM=xterm-256color |
7 | 9 |
8 export LC_ALL=$LANG | 10 export LC_ALL=$LANG |
9 | 11 |
64 bindkey '^[[B' history-substring-search-down | 66 bindkey '^[[B' history-substring-search-down |
65 bindkey "$terminfo[kcuu1]" history-substring-search-up | 67 bindkey "$terminfo[kcuu1]" history-substring-search-up |
66 bindkey "$terminfo[kcud1]" history-substring-search-down | 68 bindkey "$terminfo[kcud1]" history-substring-search-down |
67 bindkey '^p' history-substring-search-up | 69 bindkey '^p' history-substring-search-up |
68 bindkey '^n' history-substring-search-down | 70 bindkey '^n' history-substring-search-down |
71 | |
72 bindkey '^ ' autosuggest-accept | |
69 | 73 |
70 export LESS_TERMCAP_mb=$(printf "\e[1;31m") | 74 export LESS_TERMCAP_mb=$(printf "\e[1;31m") |
71 export LESS_TERMCAP_md=$(printf "\e[1;31m") | 75 export LESS_TERMCAP_md=$(printf "\e[1;31m") |
72 export LESS_TERMCAP_me=$(printf "\e[0m") | 76 export LESS_TERMCAP_me=$(printf "\e[0m") |
73 export LESS_TERMCAP_se=$(printf "\e[0m") | 77 export LESS_TERMCAP_se=$(printf "\e[0m") |