2018-03-26 06:28:57 -07:00
|
|
|
#!/bin/bash
|
2018-12-02 07:09:10 -08:00
|
|
|
|
|
|
|
# Find all dot files then if the original file exists, create a backup
|
|
|
|
# Once backed up to {file}.dtbak symlink the new dotfile in place
|
2018-04-03 07:48:41 -07:00
|
|
|
for file in $(find . -maxdepth 1 -name ".*" -type f -printf "%f\n" ); do
|
|
|
|
if [ -e ~/$file ]; then
|
|
|
|
mv -f ~/$file{,.dtbak}
|
|
|
|
fi
|
|
|
|
ln -s $PWD/$file ~/$file
|
|
|
|
done
|
2018-12-02 07:09:10 -08:00
|
|
|
|
2024-01-19 08:37:45 -08:00
|
|
|
# Install vim-addons ZSH and ZSH extras
|
|
|
|
echo "installing extras"
|
|
|
|
sudo apt update && sudo apt -y install vim-scripts zsh zsh-syntax-highlighting zsh-autosuggestions
|
2018-07-18 05:07:39 -07:00
|
|
|
|
2018-04-03 07:48:41 -07:00
|
|
|
echo "Installed"
|
2024-01-19 08:37:45 -08:00
|
|
|
echo "use chsh -s /bin/zsh to switch to ZSH shell"
|
|
|
|
|
|
|
|
|