More scripts
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user