From 051f24102240e260a517adca1f332a1ef6df12b0 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 30 Dec 2019 19:45:19 -0700 Subject: [PATCH] a few bindings and suffixes in the spirit of zsh --- zsh/bindings | 5 +++++ zsh/suffixes | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 zsh/bindings create mode 100644 zsh/suffixes 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;