-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·58 lines (49 loc) · 1.18 KB
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
TARGET=${1}
echo ${TARGET}
function update_brew {
echo "Updating... brew 🚧"
brew bundle install --file=brew/Brewfile
echo "Update Complete: brew ✅"
}
function update_tmux {
echo "Updating... tmux 🚧"
mkdir ~/.config/tmux
cp tmux/.tmux.conf ~/.tmux.conf
cp -pr tmux/bin/ ~/.config/tmux/bin/
echo "Update Complete: tmux ✅"
}
function update_zsh {
echo "Updating... zsh 🚧"
cp zsh/.zshrc ~/.zshrc
echo "Update Complete: zsh ✅"
}
function update_asdf {
echo "Updating... asdf 🚧"
sh asdf/plugins.sh
echo "Update Complete: asdf ✅"
}
function update_aerospace {
echo "Updating... aerospace 🚧"
cp aerospace/aerospace.toml ~/.aerospace.toml
echo "Update Complete: asdf ✅"
}
if [ $TARGET = "brew" ]; then
update_brew
elif [ $TARGET = "tmux" ]; then
update_tmux
elif [ $TARGET = "zsh" ]; then
update_zsh
elif [ $TARGET = "asdf" ]; then
update_asdf
elif [ $TARGET = "aerospace" ]; then
update_aerospace
elif [ $TARGET = "all" ]; then
update_brew
update_tmux
update_zsh
update_asdf
update_aerospace
else
echo "No arg specified"
fi