From: martin f. krafft Date: Wed, 21 Sep 2022 10:16:30 +0000 (+0200) Subject: push tempfile commands to history X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain?ds=sidebyside push tempfile commands to history --- 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