From 4b5c0d3763f9fb157b8df7623907e4735371ebe6 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 21 Sep 2022 12:16:30 +0200 Subject: [PATCH] push tempfile commands to history --- .zsh/zshrc/20-tempfile+dir_functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zsh/zshrc/20-tempfile+dir_functions b/.zsh/zshrc/20-tempfile+dir_functions index e782fe0..6ca6998 100644 --- a/.zsh/zshrc/20-tempfile+dir_functions +++ b/.zsh/zshrc/20-tempfile+dir_functions @@ -20,10 +20,11 @@ cdt() { builtin cd "$REPLY" fi echo "$REPLY" + print -s cd "$REPLY" } _cdt() { - cdt "$@" + cdt "$@" >/dev/null zle reset-prompt zle -M "$REPLY" } @@ -56,6 +57,7 @@ vit() { sensible-editor +start "$REPLY" /dev/tty ln -Tsf $file ${TMPDIR:-/tmp}/${tag:-vit} echo "$REPLY" + print -s sensible-editor "$REPLY" } _vit() { vit "$@" >/dev/null -- 2.39.2