-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboot
More file actions
executable file
·40 lines (34 loc) · 793 Bytes
/
boot
File metadata and controls
executable file
·40 lines (34 loc) · 793 Bytes
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
#!/bin/bash
# author: weiensong
# email: touer0018@gmail.com
# install_packages: install packages in diff platform
is_installed() {
command -v "$1" &>/dev/null
}
default_shell_setting() {
if [ "$SHELL" != "$(which zsh)" ]; then
echo "Changing default shell to zsh..."
chsh -s "$(which zsh)"
fi
}
install_zim() {
local ZIM_HOME="${ZIM_HOME:-$HOME/.zim}"
if [ ! -d "$ZIM_HOME" ]; then
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
fi
}
install_starship() {
if ! is_installed starship; then
curl -sS https://starship.rs/install.sh | sh
fi
}
install_pyenv() {
if ! is_installed pyenv; then
curl -fsSL https://pyenv.run | bash
fi
}
default_shell_setting
git_info_setting
install_zim
install_starship
install_pyenv