-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·46 lines (43 loc) · 1.21 KB
/
install.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
#!/usr/bin/env bash
# always run from the script dir
cd "${0%/*}" || return
# Source library
source ./lib/installs.sh
source ./lib/core.sh
if [[ $DEVPOD ]]; then
# For Devpod
sudo apt-get update && sudo apt-get -y upgrade
install_pack 'sudo apt-get install -y' ./packages/devpod.pack
link_dotfiles
create_zshenv
install_zsh_plugin
elif [[ $SSH_TTY ]]; then
# For Ubuntu linux
sudo -v
sudo apt update && sudo apt -y upgrade
install_pack 'sudo apt install -y' ./packages/apt.pack
install_packs 'sudo snap install' ./packages/snap.pack
install_pack 'sudo npm i -g' ./packages/npm.pack
install_pack 'python3 -m pip install' ./packages/pip.pack
sudo snap alias tmux-non-dead.tmux tmux # set alias to tmux snap
link_dotfiles
source_bashrc
install_lazygit_source "$HOME"/Software/lazygit
install_delta_ubuntu "$HOME"/Software/delta
install_astronvim
install_tmux_plugin
install_zsh_plugin
else
# For Macos
go_passwordless
# update_hosts (to be implemented)
install_brew
install_pack 'brew install' ./packages/brew.pack
install_pack 'brew install --cask' ./packages/cask.pack
install_pack 'npm i -g' ./packages/npm.pack
link_dotfiles
create_zshenv
install_astronvim
install_tmux_plugin
install_zsh_plugin
fi