Last active
          November 29, 2019 12:03 
        
      - 
      
 - 
        
Save Brianetta/0b40760b9090d38993e9a9a88fbcc06f to your computer and use it in GitHub Desktop.  
Revisions
- 
        
Brianetta revised this gist
Oct 18, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ #!/bin/bash keybase team list-memberships | cut -f 1 -d ' ' | tail -n +2 > kbteams.txt  - 
        
Brianetta revised this gist
Oct 14, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ #!/bin/bash keybase team list-memberships | cut -f 1 -d | tail -n +2 > kbteams.txt  - 
        
Brianetta created this gist
Sep 28, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/bin/bash TEAMS=kbteams.txt for unwanted_team in $( keybase team list-memberships | cut -f 1 -d ' ' | tail -n +2 | grep -v -f <(awk '{print "^" $0 "$"}' $TEAMS) ) do echo Leaving team $unwanted_team keybase team leave $unwanted_team done