-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst_setup.sh.tmpl
49 lines (36 loc) · 1.52 KB
/
first_setup.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
48
{{ if eq .chezmoi.os "linux" -}}
#!/bin/sh
# fish, neovim ppa
sudo add-apt-repository ppa:fish-shell/release-3 -y -n
sudo add-apt-repository ppa:neovim-ppa/unstable -y -n
sudo add-apt-repository ppa:neovim-ppa/stable -y -n
# github cli
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt upgrade -y
sudo apt install fish bat ripgrep neovim gh build-essential
# exa only available on 20.10 or above
sudo apt install exa
{{ else if eq .chezmoi.os "darwin" -}}
#!/bin/sh
brew install fish
brew install ripgrep
brew install exa
brew install --HEAD neovim
brew install gh
{{ end -}}
# fisher
fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher"
fish -c "fisher update"
# neovim vim-plug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
echo $(which fish) | sudo tee -a /etc/shells
chsh -s $(which fish)
echo ""
echo "Last steps:"
echo "$ ~/bin/chezmoi apply ~/.config/fish/fish_plugins --force"
echo "$ fish -c \"fisher update\""
echo "$ nvm install lts"
echo "- Make sure to run :PlugInstall in neovim"