dotfiles/install.sh

21 lines
636 B
Bash
Raw Permalink Normal View History

2024-04-27 15:41:31 +00:00
#! /bin/bash
2024-05-01 08:50:13 +00:00
set -eou pipefail
2024-04-27 15:41:31 +00:00
mkdir -p $HOME/.ssh
2024-05-03 21:47:17 +00:00
for link in bashrc gitconfig screenrc Xresources Xdefaults Xmodmap themes fonts aliases vim vimrc hushlogin ;do
2024-05-01 08:50:13 +00:00
#remove real files if present, making room for links
if [ -f $HOME/.$link ]; then
#echo 'removing' $HOME/.$link;
rm $HOME/.$link;
fi
if [ ! -e $HOME/.$link ]; then
#echo 'linking ' $(pwd)/$link $HOME/.$link;
ln -s $(pwd)/$link $HOME/.$link;
fi
2024-04-27 15:41:31 +00:00
2024-04-27 15:50:28 +00:00
done
2024-05-01 08:50:13 +00:00
if [ ! -e $HOME/.$link ]; then
ln -s $(pwd)/sshconfig $HOME/.ssh/config;
fi
2024-07-14 12:38:53 +00:00
git clone https://github.com/VundleVim/Vundle.vim.git $HOME/.vim/bundle/Vundle.vim
2024-04-30 16:46:55 +00:00
cat $(pwd)/pubkeys/* > $HOME/.ssh/authorized_keys