dots-of-war/eggs/scripts/kak-attatch-session

13 lines
137 B
Text
Raw Permalink Normal View History

2024-12-05 21:10:22 +00:00
#!/bin/sh
kak -clear
session="${PWD##*/}"
if ! kak -l | grep -q "$session"; then
kak -d -s "$session" &
fi
kak -c "$session" "$@"