dotwryn/zsh/suffixes
2021-06-28 11:27:09 -06:00

14 lines
247 B
Bash

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