diff --git a/zsh/bindings b/zsh/bindings new file mode 100644 index 0000000..b993a35 --- /dev/null +++ b/zsh/bindings @@ -0,0 +1,5 @@ +#!/bin/zsh + +bindkey '^R' history-incremental-search-backward + +bindkey '^x^e' edit-command-line; diff --git a/zsh/suffixes b/zsh/suffixes new file mode 100644 index 0000000..254d67f --- /dev/null +++ b/zsh/suffixes @@ -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;