this repo has no description

fix: zshrc with autosuggestions

+2 -71
+2 -71
.zshrc
··· 74 74 setopt HIST_EXPIRE_DUPS_FIRST 75 75 76 76 # history setup 77 - bindkey '\e[A' history-search-backward 78 - bindkey '\e[B' history-search-forward 77 + # bindkey '\e[A' history-search-backward 78 + # bindkey '\e[B' history-search-forward 79 79 80 80 # Would you like to use another custom folder than $ZSH/custom? 81 81 # ZSH_CUSTOM=/path/to/new-custom-folder ··· 116 116 # alias ohmyzsh="mate ~/.oh-my-zsh" 117 117 118 118 ## Keys to expand selection 119 - 120 - r-delregion() { 121 - if ((REGION_ACTIVE)) then 122 - zle kill-region 123 - else 124 - local widget_name=$1 125 - shift 126 - zle $widget_name -- $@ 127 - fi 128 - } 129 - 130 - r-deselect() { 131 - ((REGION_ACTIVE = 0)) 132 - local widget_name=$1 133 - shift 134 - zle $widget_name -- $@ 135 - } 136 - 137 - r-select() { 138 - ((REGION_ACTIVE)) || zle set-mark-command 139 - local widget_name=$1 140 - shift 141 - zle $widget_name -- $@ 142 - } 143 - 144 - for key kcap seq mode widget ( 145 - sleft kLFT $'\e[1;2D' select backward-char 146 - sright kRIT $'\e[1;2C' select forward-char 147 - sup kri $'\e[1;2A' select up-line-or-history 148 - sdown kind $'\e[1;2B' select down-line-or-history 149 - 150 - send kEND $'\E[1;2F' select end-of-line 151 - send2 x $'\E[4;2~' select end-of-line 152 - 153 - shome kHOM $'\E[1;2H' select beginning-of-line 154 - shome2 x $'\E[1;2~' select beginning-of-line 155 - 156 - left kcub1 $'\EOD' deselect backward-char 157 - right kcuf1 $'\EOC' deselect forward-char 158 - 159 - end kend $'\EOF' deselect end-of-line 160 - end2 x $'\E4~' deselect end-of-line 161 - 162 - home khome $'\EOH' deselect beginning-of-line 163 - home2 x $'\E1~' deselect beginning-of-line 164 - 165 - csleft x $'\E[1;6D' select backward-word 166 - csright x $'\E[1;6C' select forward-word 167 - csend x $'\E[1;6F' select end-of-line 168 - cshome x $'\E[1;6H' select beginning-of-line 169 - 170 - cleft x $'\E[1;5D' deselect backward-word 171 - cright x $'\E[1;5C' deselect forward-word 172 - 173 - del kdch1 $'\E[3~' delregion delete-char 174 - bs x $'^?' delregion backward-delete-char 175 - 176 - ) { 177 - eval "key-$key() { 178 - r-$mode $widget \$@ 179 - }" 180 - zle -N key-$key 181 - bindkey ${terminfo[$kcap]-$seq} key-$key 182 - } 183 - 184 - # restore backward-delete-char for Backspace in the incremental 185 - # search keymap so it keeps working there: 186 - bindkey -M isearch '^?' backward-delete-char 187 - ## End of keys 188 119 189 120 alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME' 190 121 export HELIX_RUNTIME=~/source/helix/runtime