Permalink
Browse files

killd - kill the screen session attach or disattach

  • Loading branch information...
1 parent 9020a40 commit 5c404d2051fe2b669595cba3240f2877717f6d1b @soarpenguin committed Dec 10, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 bashrc/killd
View
10 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.