-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_or_update.sh
executable file
·45 lines (33 loc) · 1.25 KB
/
install_or_update.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
#!/usr/bin/env bash
set -e
clone_if_not_present () {
if [[ ! -d "$2" ]]; then
git clone "$1" "$2"
else
echo "$2 already exists - skipping"
fi
}
clone_if_not_present [email protected]:tmux-plugins/tpm ~/.tmux/plugins/tpm
clone_if_not_present [email protected]:junegunn/fzf ~/.fzf
~/.fzf/install --bin
mkdir -p ~/.local/share/zplugins
clone_if_not_present [email protected]:zsh-users/zsh-syntax-highlighting ~/.local/share/zplugins/zsh-syntax-highlighting
clone_if_not_present [email protected]:zsh-users/zsh-autosuggestions ~/.local/share/zplugins/zsh-autosuggestions
clone_if_not_present [email protected]:sindresorhus/pure ~/.local/share/zplugins/pure
# use my fork until https://github.com/hlissner/zsh-autopair/pull/34 is merged (or #18 is fixed)
clone_if_not_present [email protected]:goonzoid/zsh-autopair ~/.local/share/zplugins/zsh-autopair
stow -t ~ zsh
stow -t ~ git
stow -t ~ tmux
mkdir -p ~/.config/nvim
stow -t ~/.config/nvim nvim
if ! command -v rustup &> /dev/null
then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# shellcheck source=/dev/null
# https://www.shellcheck.net/wiki/SC1090
source ~/.cargo/env
fi
rustup component add rust-analyzer
echo "Success \o/ - don't forget to install tmux plugins"
# vim: tw=0