forked from danielmiessler/ServerConfig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
executable file
·37 lines (29 loc) · 1.37 KB
/
setup
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
#!/bin/zsh
# Get & use Prezto
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
# Change default shell to zsh
chsh -s /bin/zsh
# Install up-to-date neovim (alternative would be Linux package from Github releases)
#
# On systems without FUSE (virtual machines etc.), it is possible to extract the appimage
# to a location of your choosing and editing the EDITOR variable in .zshrc, e.g.:
# export EDITOR="~/LinuxConfig/squashfs-root/AppRun"
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage --output-dir ~
chmod u+x ~/nvim.appimage
# Install tmux plugin manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Link my config files
rm -f ~/.zshrc ~/.zpreztorc
ln -s "${ZDOTDIR:-$HOME}"/LinuxConfig/.zshrc ~/.zshrc
ln -s "${ZDOTDIR:-$HOME}"/LinuxConfig/.zpreztorc ~/.zpreztorc
mkdir -p ~/.config/tmux/
ln -s "${ZDOTDIR:-$HOME}"/LinuxConfig/tmux.conf ~/.config/tmux/tmux.conf
ln -s "${ZDOTDIR:-$HOME}"/LinuxConfig/nvim ~/.config/nvim
# Remind to install the plugins
echo "Launch tmux and install downloaded plugins using combination '<Ctrl+Space> I'."
echo
echo "Launch nvim and run :MasonInstallAll command after lazy.nvim finishes downloading plugins."