-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_once_install-packages.sh.tmpl
47 lines (42 loc) · 1.22 KB
/
run_once_install-packages.sh.tmpl
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
#!/bin/sh
{{ if eq .chezmoi.os "linux" -}}
{{ if eq .chezmoi.osRelease.id "debian" -}}
sudo apt update
sudo apt install -y \
tmux \
fd-find \
ripgrep \
fzf
# NeoVim Setup
# if ! command -v nvim &> /dev/null; then
# echo "Installing NVIM"
# wget https://github.com/neovim/neovim/releases/download/v0.7.0/nvim-linux64.deb
# sudo dpkg -i nvim-linux64.deb
# rm nvim-linux64.deb
# fi
{{ else if eq .chezmoi.osRelease.idLike "arch" -}}
sudo pacman -Sy --noconfirm \
neovim \
tmux \
fd \
ripgrep \
fzf
{{ end -}}
{{ else if eq .chezmoi.os "darwin" -}}
if ! command -v brew &> /dev/null
then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
brew bundle
{{ end -}}
# pip3 install neovim
# nvim --headless +PlugInstall +qa
# nvim --headless +UpdateRemotePlugins +qa
# fd (find replacement)
# https://github.com/sharkdp/fd
if ! command -v fd &> /dev/null; then
[ ! -d "$HOME/.local/bin" ] && mkdir -p $HOME/.local/bin
[ ! -f "$HOME/.local/bin/fd" ] && ln -s $(which fdfind) $HOME/.local/bin/fd
fi
# $HOME/.tmux/plugins/tpm/bin/install_plugins || true