-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
27 lines (24 loc) · 963 Bytes
/
install.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
set -e # stop immediately if anything fails
# echo $USER > /tmp/currentusername
# sudo bash -c "apt-get -y install git vim tree curl silversearcher-ag fish wget openssh-server ca-certificates sudo tmux && \
# cat /tmp/currentusername | xargs chsh -s /usr/bin/fish"
# rm /tmp/currentusername
echo "Configuring Vim..."
mkdir -p ~/tmp
ln -sf ~/.../vimrc ~/
[ -f ~/.vim/autoload/plug.vim ] || \
(curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim &&
vim -c "PlugUpdate | qa")
echo "Configuring Tmux..."
ln -sf ~/.../.tmux.conf ~/
echo "Configuring bash..."
grep -Fxq "source ~/.../.bashrc" ~/.bashrc || \
echo "source ~/.../.bashrc" >> ~/.bashrc
# echo "Configuring fish..."
# mkdir -p ~/.config/fish/config/fish
# ln -sf ~/.../config.fish ~/.config/fish/config.fish
#
# echo "Configuring Git..."
# ln -sf ~/.../gitconfig ~/.gitconfig
# ln -sf ~/.../gitexclude ~/.gitexclude