Skip to content

Instantly share code, notes, and snippets.

@tranthaison1231
Created November 12, 2019 14:20
Show Gist options
  • Select an option

  • Save tranthaison1231/95b100aa68a2f8129783b1ffe4fea8cf to your computer and use it in GitHub Desktop.

Select an option

Save tranthaison1231/95b100aa68a2f8129783b1ffe4fea8cf to your computer and use it in GitHub Desktop.
install_oh_my_zsh() {
echo "Setting up zsh..."
}
install_github(){
}
install_homebrew() {
echo "Setting up homebrew..."
# && /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" \
# && brew install yarn \
# && brew install watchman
# && brew install tmux \
# && brew install heroku/brew/heroku \
# && brew install qt5 \
# && pip3 install qutebrowser \
# && brew install neovim \
# && brew uninstall --force postgresql
# && rm -rf /usr/local/var/postgres
# && brew install postgres
# echo "Successing to setting homebrew..."
}
install_npm() {
echo "Setting up package npm global..."
# && npm install -g eslint
# && npm install -g react-native-cli
}
install_neovim() {
echo "Setting up neovim..." \
&& rm -rf ~/.config/nvim \
&& git clone https://github.com/tranthaison1231/Dotfiles ~/.config/nvim/ \
&& nvim -c 'PlugInstall' \
echo "Successing to setting neovim..."
}
if [[ -z $1 ]]; then
echo "This will delete all your previous nvim, zsh settings. Proceed? (y/n)? "
read answer
if echo "$answer" | grep -iq "^y" ;then
echo "Installing dependencies..." \
&& install_neovim \
&& echo "Finished installation."
fi
else
"install_$1" $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment