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

12 lines
137 B
Bash
Executable file

#!/bin/sh
kak -clear
session="${PWD##*/}"
if ! kak -l | grep -q "$session"; then
kak -d -s "$session" &
fi
kak -c "$session" "$@"