From 1297a2e0ec774a13c9900b63c2b4afbb6582a5d3 Mon Sep 17 00:00:00 2001 From: Peter Son Struschka Date: Wed, 10 Oct 2018 17:19:29 +0700 Subject: multiple changes mostly to zsh and polybar --- zsh/.zfunc/_kitty | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 zsh/.zfunc/_kitty (limited to 'zsh/.zfunc') diff --git a/zsh/.zfunc/_kitty b/zsh/.zfunc/_kitty new file mode 100644 index 0000000..15918b5 --- /dev/null +++ b/zsh/.zfunc/_kitty @@ -0,0 +1,14 @@ +autoload -Uz compinit +compinit + +_kitty() { + local src + # Send all words up to the word the cursor is currently on + src=$(printf "%s +" "${(@)words[1,$CURRENT]}" | kitty +complete zsh) + if [[ $? == 0 ]]; then + eval ${src} + fi +} +compdef _kitty kitty + -- cgit v1.2.3