More scripts

This commit is contained in:
Dustin Swan 2019-11-18 10:13:03 -05:00
parent 411a3ad9de
commit 9a2c4328d5
No known key found for this signature in database
GPG key ID: AB49BD6B2B3A6377
3 changed files with 18 additions and 2 deletions

9
bin/clean Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
if command -v brew &> /dev/null; then
brew cleanup
fi
if command -v nix &> /dev/null; then
nix-collect-garbage -d
fi

9
bin/sync Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
if command -v offlineimap &> /dev/null; then
offlineimap
fi
if command -v vdirsyncer &> /dev/null; then
vdirsyncer sync
fi

View file

@ -1,6 +1,5 @@
#!/bin/sh
# if type "$brew" > /dev/null; then
if command -v brew &> /dev/null; then
brew update
brew upgrade
@ -8,7 +7,6 @@ if command -v brew &> /dev/null; then
fi
if command -v nix &> /dev/null; then
# if type "$nix" > /dev/null; then
nix-channel --update
nix-env -u
home-manager switch