a few bindings and suffixes in the spirit of zsh

This commit is contained in:
Wryn Wagner 2019-12-30 19:45:19 -07:00
parent 34bb6efee7
commit 051f241022
2 changed files with 20 additions and 0 deletions

5
zsh/bindings Normal file
View File

@ -0,0 +1,5 @@
#!/bin/zsh
bindkey '^R' history-incremental-search-backward
bindkey '^x^e' edit-command-line;

15
zsh/suffixes Normal file
View File

@ -0,0 +1,15 @@
#!/bin/zsh
PYTHON="py"
CLISP="clisp lisp"
SHELL="sh bash zsh"
TEXT="txt md js";
WEB="css scss less html php cshtml json"
JS="ts tsx js"
C="cpp h c cs"
FILES_TO_EDIT="$PYTHON $CLISP $SHELL $TEXT $WEB $JS $C";
for filetype in ${(s/ /)FILES_TO_EDIT}; do
alias -s $filetype="$EDITOR";
done;