Skip to content

Commit

Permalink
feat: enable zsh function for clearing craft lxc instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Nov 21, 2023
1 parent 8506853 commit 58ab1ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home/common/shell/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
done
}
clean-crafts-lxc() {
for CRAFT in snapcraft rockcraft charmcraft; do
lxc --project $CRAFT list -fcsv -cn | xargs lxc --project $CRAFT delete -f >/dev/null
done
}
export EDITOR=vim
'';

Expand Down

0 comments on commit 58ab1ab

Please sign in to comment.