-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.sh
executable file
·41 lines (32 loc) · 1.25 KB
/
configure.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
#!/bin/bash
echo 'Adding current user to docker group, you may be promted for your sudo password'
user=$(whoami)
sudo gpasswd -a $user docker
# neovim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir -p ~/.config/nvim
git clone https://github.com/luan/nvim.git ~/.config/nvim
nvim +PlugInstall +qall
nvim +UpdateRemotePlugins +qall
nvim +GoInstallBinaries +qall
# Custom Nvim config
rm ~/.config/nvim/user/after.vim ~/.config/nvim/user/plug.vim
ln -s $(pwd)/nvim-after.vim ~/.config/nvim/user/after.vim
ln -s $(pwd)/nvim-plug.vim ~/.config/nvim/user/plug.vim
#tmuxfiles
wget -O - https://raw.githubusercontent.com/luan/tmuxfiles/master/install | bash
# support ssh key forwarding, requires having `ssh-add`-ed before ssh-ing onto the machine
cat << EOF >> ~/.ssh/rc
if test "\$SSH_AUTH_SOCK"; then
ln -sf \$SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
fi
EOF
echo "set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock" >> ~/.tmux.conf
echo "set -g update-environment -r" >> ~/.tmux.conf
# install bash profile
shopt -s dotglob
rm ~/.bash_aliases ~/.bash_logout ~/.bash_profile ~/.bashrc ~/.profile
ln -s $(pwd)/dotfiles/* ~/
# fly aliases
ln -s ~/workspace/networking-workspace/flyrc ~/.flyrc