-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·72 lines (57 loc) · 1.86 KB
/
install
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/zsh
export USERNAME=`whoami`
sudo chsh -s $(which zsh) $USERNAME
mkdir -p ~/bin
# DEBIAN specific
if [ -f "/etc/debian_version" ]; then
sudo apt update
sudo apt install -y \
stow \
tmux \
fzf \
ripgrep \
kitty-terminfo
brew install jj zellij
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage --appimage-extract
ln -s "$(pwd)/squashfs-root/usr/bin/nvim" ~/bin/nvim
rm -f nvim.appimage
wget https://github.com/BlakeWilliams/remote-development-manager/releases/latest/download/rdm-linux-amd64
mv rdm-linux-amd64 ~/bin/rdm
chmod +x ~/bin/rdm
fi
# GitHub Codespaces specific
if [ -n "${CODESPACES}" ]; then
# Install bat
sudo apt install bat -y
mkdir -p ~/.local/bin
ln -s /usr/bin/batcat ~/.local/bin/bat
fi
## Install starship
curl -sS https://starship.rs/install.sh | sh -s -- --yes
## Install prezto
# if prezto folder does not exist then clone it
if [ ! -d ~/.zprezto ]; then
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
fi
rm -f ~/.gitconfig # remove any default .zshrc so that stow won't fail
# if ~/.zshrc already exists then append its contents to zsh/.zshrc
if [ -f ~/.zshrc ]; then
# echo "" >> zsh/.zshrc
# echo "# Appended from pre-existing ~/.zshrc" >> zsh/.zshrc
# cat ~/.zshrc >> zsh/.zshrc
rm -f ~/.zshrc
fi
# if ~/.zprofile already exists then append its contents to zsh/.zprofile
if [ -f ~/.zprofile ]; then
echo "" >> zsh/.zprofile
echo "# Appended from pre-existing ~/.zprofile" >> zsh/.zprofile
cat ~/.zprofile >> zsh/.zprofile
rm -f ~/.zprofile
fi
stow bin git terminal tmux vim zsh jj -t $HOME
## NEOVIM setup
nvim --headless "+Lazy! sync" +qa
## Download Alacritty terminfo
curl -sSL https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info | tic -x -