Skip to content

Instantly share code, notes, and snippets.

@cleac
Created March 29, 2018 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleac/9fed7092c32a52d09456e459c48f38ee to your computer and use it in GitHub Desktop.
Save cleac/9fed7092c32a52d09456e459c48f38ee to your computer and use it in GitHub Desktop.
Script for all unused data from your workspace directory
#!/bin/bash
workspace_dir=$HOME/workspace
case "$1" in
activate)
for dr in $(ls "$workspace_dir"); do
cd "$workspace_dir/$dr"
vagga _clean --unused 2&>1 > /dev/null &
done;;
*)
echo "No such command \"$1\""
exit 1
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment