Skip to content

Commit 5c404d2

Browse files
committed
killd - kill the screen session attach or disattach
1 parent 9020a40 commit 5c404d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bashrc/killd

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/env bash
2+
3+
killd () {
4+
for session in $(screen -ls | grep -o '[0-9]\{5\}')
5+
do
6+
screen -S "${session}" -X quit;
7+
done
8+
}
9+
10+
killd

0 commit comments

Comments
 (0)