More scripts
This commit is contained in:
parent
411a3ad9de
commit
9a2c4328d5
3 changed files with 18 additions and 2 deletions
9
bin/clean
Executable file
9
bin/clean
Executable 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
9
bin/sync
Executable 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue