-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-dotfiles-debian.sh
executable file
·44 lines (38 loc) · 1.13 KB
/
install-dotfiles-debian.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
41
42
#!/bin/bash -x
function setupRCFile {
rcfile=~/.$1
# Configure git
if [[ -f $rcfile ]]; then
mv $rcfile $rcfile.bkp
fi
ln -s ~/dotfiles/$1 $rcfile
}
sudo apt-get update && sudo apt-get install -y apt-transport-https
sudo apt-get install -y curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
# Install packages
sudo apt-get install -y neovim \
curl \
ansible \
npm \
silversearcher-ag \
thefuck \
kubectl \
nodejs \
git \
shellcheck
# Setup gh
mkdir -p ~/src/github.com/jdxcode/gh
cd ~/src/github.com/jdxcode
git clone [email protected]:jdxcode/gh.git
python-pkg-resources mv ~/.config/nvim ~/.config/nvim.backup
# Configure nvim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +qall
ln -s nvim ~/.config/nvim
setupRCFile vimrc
setupRCFile gitconfig
setupRCFile bashrc