modified script, which still sucks

This commit is contained in:
Adrien Luxey-Bitri 2022-10-04 21:20:50 +02:00
parent 550bdc8c4a
commit 3c418d7ac4

View file

@ -29,7 +29,6 @@ function syncDotfiles {
rm $HOME/.tmux.conf > /dev/null 2>&1
rm -rf $HOME/.vim > /dev/null 2>&1
rm -rf $HOME/.tmux > /dev/null 2>&1
rm -rf $HOME/.config/sublime-text-3/Packages/User > /dev/null 2>&1
rm $HOME/.ssh/config > /dev/null 2>&1
echo Installing our dotfiles...
@ -39,8 +38,10 @@ function syncDotfiles {
ln -s $DOTDIR/vim $HOME/.vim
ln -s $DOTDIR/tmux $HOME/.tmux
if [ -d "$HOME/.config/sublime-text-3" ]; then
rm -rf $HOME/.config/sublime-text-3/Packages/User > /dev/null 2>&1
ln -s $DOTDIR/sublime $HOME/.config/sublime-text-3/Packages/User
elif [ -d "$HOME/.config/sublime-text" ]; then
rm -rf $HOME/.config/sublime-text/Packages/User > /dev/null 2>&1
ln -s $DOTDIR/sublime $HOME/.config/sublime-text/Packages/User
fi
mkdir -p $HOME/.ssh
@ -59,7 +60,7 @@ function installDependencies {
echo Installing Sublime Text 3...
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - > /dev/null 2>&1
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list > /dev/null 2>&1
sudo apt update > /dev/null 2>&1
#sudo apt update > /dev/null 2>&1
sudo apt install sublime-text -y > /dev/null 2>&1
fi
@ -79,11 +80,6 @@ function installDependencies {
# Make ZSH is the current SHELL
echo $SHELL | grep zsh > /dev/null || chsh -s $(which zsh)
# Prev version
#if [ ! "$SHELL" = "$(which zsh)" ]; then
# echo Setting ZSH as default shell...
# chsh -s $(which zsh)
#fi
}
# Parse command-line arguments