diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-04-27 13:39:23 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-04-27 13:39:23 +0200 |
commit | 2a284fc5deb56bc2a9d1a45595741e1c72a153a4 (patch) | |
tree | 2fad04d5347fa6c93dbe7bbc2a196f9251d95c57 /install/install_mac.sh | |
parent | 7c9e2622b14965528e3d38010ff41ffa0f7b6805 (diff) | |
download | dotfiles-2a284fc5deb56bc2a9d1a45595741e1c72a153a4.tar.gz dotfiles-2a284fc5deb56bc2a9d1a45595741e1c72a153a4.zip |
Remove install
Diffstat (limited to 'install/install_mac.sh')
-rwxr-xr-x | install/install_mac.sh | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/install/install_mac.sh b/install/install_mac.sh deleted file mode 100755 index 98fc1fc..0000000 --- a/install/install_mac.sh +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/sh - -function dlgYN() { - tput sc - tput setaf 4 - printf "$1 (y/n)? " - while : - do - read -n 1 -p "" YNQuestionAnswer - if [[ $YNQuestionAnswer == "y" ]]; then - tput rc; tput el - printf "$1?: \e[0;32mYes\e[0m\n" - tput sc - eval $2=1 # Set parameter 2 of input to the return value - break - elif [[ $YNQuestionAnswer == "n" ]]; then - tput rc; tput el - printf "$1?: \e[0;31mNo\e[0m\n" - eval $2=0 # Set parameter 2 of input to the return value - break - fi - done -} - -dlgYN "> Install Homebrew" res -if [ $res -eq 1 ]; then - tput sc - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - tput rc; tput ed -fi - -dlgYN "> Install \"Highlight, atool, w3m, mediainfo, vim\"" res -if [ $res -eq 1 ]; then - tput sc - brew install highlight atool w3m mediainfo vim nodejs - tput rc; tput ed -fi - -dlgYN "> Install Oh-My-Zsh" res -if [ $res -eq 1 ]; then - tput sc - sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - - # Zsh-autosuggestions - git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions - # Zsh-syntax-highlighting - git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting - # Zsh-vi-mode - git clone https://github.com/jeffreytse/zsh-vi-mode ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-vi-mode - - tput rc; tput ed -fi - -dlgYN "> Install Powerline && powerlevel10k" res -if [ $res -eq 1 ]; then - tput sc - pip3 install pygments - pip3 install powerline-status - brew install romkatv/powerlevel10k/powerlevel10k - tput rc; tput ed -fi - -dlgYN "> Create symlinks" res -if [ $res -eq 1 ]; then - CWD=$(PWD) - tput sc - ln -isf "$CWD/bin" ~/bin - ln -isf "$CWD/mac/tmux.conf" ~/.tmux.conf - ln -isf "$CWD/mac/Hyperterm/hyper.js" ~/.hyper.js - ln -isf "$CWD/mac/Hyperterm/local" ~/.hyper_plugins/local - ln -isf "$CWD/Common/zshrc" ~/.zshrc - ln -isf "$CWD/Common/vimrc" ~/.vimrc - ln -isf "$CWD/Common/vim" ~/.vim - ln -isf "$CWD/Common/nvim" ~/.config/nvim - ln -isf "$CWD/Common/p10k.zsh" ~/.p10k.zsh - rm -r ~/Library/texmf/tex && ln -isf "$CWD/Common/tex" ~/Library/texmf/tex - tput rc; tput ed -fi - -tput setaf 3 -echo "\nPlease install the font Roboto mono nerd, and enable it in your terminal." -echo "\nPlease run ':PlugInstall' in vim" -tput sgr0 |