commit 488e415b7aa01cc081a39916d7d18d949d62009c
parent a0db44e9e3bb191e62bf335ff689af8a7df876ba
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 9 May 2019 07:26:30 -0700
Add binding to launch new TERMINAL in cwd
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/.zshrc b/.zshrc
@@ -103,6 +103,14 @@ _editor_fuzzy_grep() {
zle -N _editor_fuzzy_grep
bindkey '^g' _editor_fuzzy_grep
+# launch $TERMINAL with Ctrl-t
+_terminal() {
+ BUFFER="$TERMINAL >/dev/null 2>&1 &; disown"
+ zle accept-line
+}
+zle -N _terminal
+bindkey '\ep' _terminal
+
# remember -n flag for dry runs
alias zmv='noglob zmv'
alias zcp='noglob zmv -C'