-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
35 lines (27 loc) · 1.11 KB
/
bootstrap.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
#! /bin/bash
# Run SSH service on port 22
sudo apt-get update
sudo apt install -y openssh-server
sudo service ssh start
# Install dependencies
brew install neovim ripgrep fzf bat fd zoxide starship hub tmux basedpyright xsel
# Configure nvim
pushd $(dirname $0)
ln -f -s $PWD/vim ~/.config/nvim
# Configure tmux, brew version is required for clipboard functionality
sudo apt-get remove -y tmux
ln -f -s $PWD/tmux/tmux.conf ~/.tmux.conf
ln -f -s $PWD/tmux/tmux-statusline-colors.conf ~/.tmux-statusline-colors.conf
# Download tpm, install plugins
mkdir -p ~/.tmux/plugins
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
~/.tmux/plugins/tpm/bin/install_plugins
# Configure zsh, aliases
zsh_custom_dir=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}
ln -f -s $PWD/zsh/zshrc $zsh_custom_dir/zshrc-custom.zsh
ln -f -s $PWD/zsh/zsh_aliases $zsh_custom_dir/zshrc-aliases.zsh
# Configure starship, custom prompt gets overriden
echo "eval \"\$(starship init zsh)\"" >> ~/.zshrc
ln -f -s $PWD/starship/starship.toml ~/.config/starship.toml
# Extra steps
# 1) Add history-substring-search, syntax highlighting to ~/.zshrc plugins