shell(ash): kak aliases using kff

git repo: https://gitlab.com/Screwtapello/kakoune-fuzzy-find
This commit is contained in:
lupan committed 2026-10-01 20:40:28 +02:00
1 parent 0eeb00d153
commit f19f79b17b
2 files changed
+16 -3

No files matched your search

Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
socket_name=$(basename `pwd`)
socket_file=$(kak -l | grep "^$socket_name\$")
if [ -z "$socket_file" ]; then
setsid kak -d -s "$socket_name" &
sleep 0.5
fi
exec kak -c "$socket_name" $@