-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_once_install_packages.sh
executable file
·64 lines (43 loc) · 1.53 KB
/
run_once_install_packages.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
58
59
60
61
62
63
64
#!/bin/bash
SOURCE_DIR=$(chezmoi source-path)
cd "$SOURCE_DIR" &&
. "./scripts/utils_install" &&
. "./scripts/utils"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "Install packages\n"
ask_for_confirmation "Would you like to do it now? It can take a bit of time."
if ! answer_is_yes; then
exit
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ask_for_sudo
# TODO: install homebrew
# /bin/bash -c "$(curl -fsSL https://github.com/raw/Homebrew/install/HEAD/install.sh)"
# /opt/homebrew/bin/brew install chezmoi
# brew install chezmoi
# git clone git@github.com:joelazar/dotfiles.git ~/.local/share/chezmoi
# /opt/homebrew/bin/chezmoi init
# /opt/homebrew/bin/chezmoi apply
# brew bundle
print_in_purple "Package managers\n"
pyenv
install_nnn_plugins
# TODO: install pip packages
# pip3 install pynvim --break-system-packages
# TODO: rclone install
# sudo -v ; curl https://rclone.org/install.sh | sudo bash
print_in_purple "NPM packages\n"
install_npm_package "npm-check"
install_npm_package "rag-crawler"
install_npm_package "yalc"
print_in_purple "Go packages\n"
install_go_package "github.com/cosmos72/gomacro@latest" "gomacro"
print_in_purple "GH plugins\n"
# TODO: check if gh was authenticated already
# install yazi plugins
# ya pack -a yazi-rs/plugins#max-preview
# ya pack -a yazi-rs/plugins#smart-filter
# ya pack -a yazi-rs/plugins#hide-preview
# ya pack -a yazi-rs/plugins#diff
install_gh_plugin "dlvhdr/gh-dash"
install_gh_plugin "github/gh-copilot"