-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·60 lines (48 loc) · 1.64 KB
/
install.sh
File metadata and controls
executable file
·60 lines (48 loc) · 1.64 KB
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
#!/bin/bash
exec > >(tee -i $HOME/dotfiles_install.log)
exec 2>&1
set -x
git submodule update --init
PACKAGES_NEEDED="\
zsh
tmux
rbenv
ruby-build
ripgrep \
bat"
if ! dpkg -s ${PACKAGES_NEEDED} > /dev/null 2>&1; then
if [ ! -d "/var/lib/apt/lists" ] || [ "$(ls /var/lib/apt/lists/ | wc -l)" = "0" ]; then
sudo apt-get update
fi
sudo echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
sudo apt-get -y -q install ${PACKAGES_NEEDED}
fi
ln -fs $PWD/zsh/.zsh $HOME/.zsh
ln -fs $PWD/zsh/pure/pure.zsh $HOME/.zsh/prompt_pure_setup
ln -fs $PWD/zsh/.zshrc $HOME/.zshrc
ln -fs $PWD/zsh/.zshenv $HOME/.zshenv
ln -fs $PWD/.tmux.conf $HOME/.tmux.conf
pip3 install --user pynvim
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage --appimage-extract
./squashfs-root/AppRun --version
mkdir $HOME/.local/bin
sudo mv squashfs-root /
ln -s /squashfs-root/AppRun $HOME/.local/bin/nvim
mkdir -p $HOME/.config
ln -fs $PWD/.config/nvim $HOME/.config/nvim
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
nvim --headless +GoInstallBinaries +qa
ln -fs $PWD/git/.gitconfig $HOME/.gitconfig
ln -fs $PWD/git/.gitignore $HOME/.gitignore
mkdir -p $HOME/.config/Code/User
ln -fs $PWD/vscode/settings.json $HOME/.config/Code/User/settings.json
wget https://github.com/BlakeWilliams/remote-development-manager/archive/refs/tags/v0.0.7.zip
unzip v0.0.7.zip
cd remote-development-manager-0.0.7
go build main.go
sudo mv main /usr/local/bin/rdm
chmod +x /usr/local/bin/rdm
# use zsh by default
sudo chsh -s "$(which zsh)" "$(whoami)"