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

13 lines
137 B
Text
Raw Normal View History

2020-09-20 08:29:51 +00:00
#!/bin/sh
kak -clear
session="${PWD##*/}"
if ! kak -l | grep -q "$session"; then
kak -d -s "$session" &
fi
kak -c "$session" "$@"