dotwryn/zsh/suffixes

14 lines
247 B
Plaintext
Raw Normal View History

#!/bin/zsh
2020-01-10 16:07:06 +00:00
CLISP="clisp lisp"
2021-06-28 17:27:09 +00:00
TEXT="txt md";
2020-01-10 16:07:06 +00:00
WEB="css scss less html php cshtml json"
JS="ts tsx js"
C="cpp h c cs"
2021-06-28 17:27:09 +00:00
FILES_TO_EDIT="$CLISP $TEXT $WEB $C";
for filetype in ${(s/ /)FILES_TO_EDIT}; do
alias -s $filetype="$EDITOR";
done;