modified script, which still sucks
This commit is contained in:
parent
550bdc8c4a
commit
3c418d7ac4
1 changed files with 3 additions and 7 deletions
10
install.sh
10
install.sh
|
@ -29,7 +29,6 @@ function syncDotfiles {
|
||||||
rm $HOME/.tmux.conf > /dev/null 2>&1
|
rm $HOME/.tmux.conf > /dev/null 2>&1
|
||||||
rm -rf $HOME/.vim > /dev/null 2>&1
|
rm -rf $HOME/.vim > /dev/null 2>&1
|
||||||
rm -rf $HOME/.tmux > /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
|
rm $HOME/.ssh/config > /dev/null 2>&1
|
||||||
|
|
||||||
echo Installing our dotfiles...
|
echo Installing our dotfiles...
|
||||||
|
@ -39,8 +38,10 @@ function syncDotfiles {
|
||||||
ln -s $DOTDIR/vim $HOME/.vim
|
ln -s $DOTDIR/vim $HOME/.vim
|
||||||
ln -s $DOTDIR/tmux $HOME/.tmux
|
ln -s $DOTDIR/tmux $HOME/.tmux
|
||||||
if [ -d "$HOME/.config/sublime-text-3" ]; then
|
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
|
ln -s $DOTDIR/sublime $HOME/.config/sublime-text-3/Packages/User
|
||||||
elif [ -d "$HOME/.config/sublime-text" ]; then
|
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
|
ln -s $DOTDIR/sublime $HOME/.config/sublime-text/Packages/User
|
||||||
fi
|
fi
|
||||||
mkdir -p $HOME/.ssh
|
mkdir -p $HOME/.ssh
|
||||||
|
@ -59,7 +60,7 @@ function installDependencies {
|
||||||
echo Installing Sublime Text 3...
|
echo Installing Sublime Text 3...
|
||||||
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - > /dev/null 2>&1
|
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
|
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
|
sudo apt install sublime-text -y > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -79,11 +80,6 @@ function installDependencies {
|
||||||
|
|
||||||
# Make ZSH is the current SHELL
|
# Make ZSH is the current SHELL
|
||||||
echo $SHELL | grep zsh > /dev/null || chsh -s $(which zsh)
|
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
|
# Parse command-line arguments
|
||||||
|
|
Loading…
Reference in a new issue