Skip to content

Commit

Permalink
killd - kill the screen session attach or disattach
Browse files Browse the repository at this point in the history
  • Loading branch information
soarpenguin committed Dec 10, 2013
1 parent 9020a40 commit 5c404d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bashrc/killd
@@ -0,0 +1,10 @@
#!/bin/env bash

killd () {
for session in $(screen -ls | grep -o '[0-9]\{5\}')
do
screen -S "${session}" -X quit;
done
}

killd

0 comments on commit 5c404d2

Please sign in to comment.