aboutsummaryrefslogtreecommitdiff
path: root/sdn-install
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-05 21:54:56 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-05 21:54:56 +0100
commit7c2ab8ab59d7b502aba747850ee4f4bcee4fd2fa (patch)
treeda196f20c6c032787a74587c0d4396917002b5d1 /sdn-install
parente423a3a1b1cced36618ef4aea076cb5ba275f0a4 (diff)
downloadsdn-7c2ab8ab59d7b502aba747850ee4f4bcee4fd2fa.tar.gz
sdn-7c2ab8ab59d7b502aba747850ee4f4bcee4fd2fa.tar.xz
sdn-7c2ab8ab59d7b502aba747850ee4f4bcee4fd2fa.zip
zsh integration: add helpers to command history
Diffstat (limited to 'sdn-install')
-rwxr-xr-xsdn-install3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdn-install b/sdn-install
index 93821bf..66cc063 100755
--- a/sdn-install
+++ b/sdn-install
@@ -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