shell(ash): kak aliases using kff
git repo: https://gitlab.com/Screwtapello/kakoune-fuzzy-find
This commit is contained in:
1 parent
0eeb00d153
commit
f19f79b17b
2 files changed
+16
-3
No files matched your search
Executable
+11
@@ -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" $@
|
||||
Reference in new issue
Block a user