dots-of-war/files/scripts/kak-attatch-session
2020-10-30 22:02:38 +02:00

10 lines
140 B
Bash
Executable file

#! /bin/sh
kak -clear
session="${PWD##*/}"
[ ! "$(kak -l | grep -iq "$session")" ] && \
kak -d -s "$session" &
kak -c "$session" "$@"