zsh integration: add helpers to command history

This commit is contained in:
Přemysl Eric Janouch 2021-11-05 21:54:56 +01:00
parent e423a3a1b1
commit 7c2ab8ab59
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -16,6 +16,9 @@ sdn-navigate () {
# helpers after the terminal has been resized while running sdn
command true
# Add to history, see https://www.zsh.org/mla/workers/2020/msg00633.html
fc -R =(print -- "$helper")
/bin/sh -c "$helper" </dev/tty || break
done
# optionally: zle zle-line-init