From c56ddedfe8a37c002129eacaa0c35751cd7373bb Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Mon, 18 Mar 2019 13:38:42 +0100 Subject: [PATCH 01/33] feat(setup): add homebrew packages --- scripts/setup.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 9250063..85ad3f3 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -37,8 +37,16 @@ fi # Update homebrew recipes brew update -# Install zsh Bash -brew install zsh zsh-completions +echo -n "Install the Supercharged Homebrew Packages? (y/n) " +read yesno < /dev/tty + +if [ "x$yesno" = "xy" ];then + # Check for Homebrew, install if we don't have it + if test ! $(which brew); then + echo "Installing homebrew packages ๐Ÿป..." + brew install zsh zsh-completions htop +fi + # Basic oh-my-zsh Installation sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" From 73d729d82620c7bb684d01608c16800f8dcf88ec Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Thu, 6 Jun 2019 20:39:25 +0200 Subject: [PATCH 02/33] feat: add git submodules --- .gitmodules | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..528856e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vim/.vim/bundle/vundle"] + path = vim/.vim/bundle/vundle + url = https://github.com/VundleVim/Vundle.vim.git From 68ca52360cf2ca9f30687d0a9c2f25fd6b9f5cfb Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Fri, 7 Jun 2019 10:02:49 +0200 Subject: [PATCH 03/33] feat: add first setuo file --- install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..88f1a45 --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +echo "cloning dotfiles." + +# git clone https://github.com/greenchapter/dotfiles.git $HOME/.dotfiles + +echo "init submodules." +# (cd $HOME/.dotfiles && git submodule update --init) + +for i in $(ls); do + echo "Link ${i} to $HOME/.$(basename ${i})."; + # ln -s ${i} "$HOME/.$(basename ${i})"; + done + +echo "Done." From a9e7b1d65de13fd815678a469dacfe79a60afd48 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 13:56:13 +0100 Subject: [PATCH 04/33] feat: restyle setup script --- scripts/setup.sh | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 85ad3f3..35df43b 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -6,47 +6,55 @@ # Based on Gerald baeck Bootstrap Script # - https://github.com/geraldbaeck/dotfiles/blob/master/osx_scripts/osx_bootstrap.sh -echo "๐Ÿš€ Start bootstrapping your new mac." +echo "\n\nStart bootstrapping your new mac.\n" +echo -n " .----.\n" +echo -n " |>_ |\n" +echo -n " __|____|__\n" +echo -n " | ______--|\n" +echo -n " -/.::::.\-\n" +echo -n " -------- \n\n" # get sudo rights for all the things -echo -n "Get sudo rights for all the things. Is this ok? (y/n) " +echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' read yesno < /dev/tty -if [ "x$yesno" = "xy" ];then +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then sudo -v else echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" exit fi +# Install Homebrew -echo -n "Do you want to install Homebrew? (y/n) " +echo -ne '\033[1mDo you want to install Homebrew?\033[0m (yes/no) ' read yesno < /dev/tty -if [ "x$yesno" = "xy" ];then +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then # Check for Homebrew, install if we don't have it if test ! $(which brew); then echo "Installing homebrew..." ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" else - echo "You already have installed homebrew." + echo "\n โœ… You already have installed homebrew.\n" fi fi +# Install or Update brew kegs -# Update homebrew recipes -brew update - -echo -n "Install the Supercharged Homebrew Packages? (y/n) " +echo -ne '\033[1mInstall the Supercharged Homebrew Packages?\033[0m (yes/no) ' read yesno < /dev/tty -if [ "x$yesno" = "xy" ];then - # Check for Homebrew, install if we don't have it - if test ! $(which brew); then - echo "Installing homebrew packages ๐Ÿป..." - brew install zsh zsh-completions htop +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + echo "\n โบ Installing homebrew packages ๐Ÿป...\n" + brew update && brew install zsh zsh-completions htop bmon + echo "\n โœ… All brew kegs are updated or installed.\n" +else + echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" + exit fi + # Basic oh-my-zsh Installation -sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" From a334cfb62b4f5ad7a0b157f82b3ab5ef9a2ff2ea Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 14:22:19 +0100 Subject: [PATCH 05/33] feat: add ohmyzsh setup --- scripts/setup.sh | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 35df43b..e980afc 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -14,6 +14,9 @@ echo -n " | ______--|\n" echo -n " -/.::::.\-\n" echo -n " -------- \n\n" +# Basic oh-my-zsh Installation +# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" + # get sudo rights for all the things echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' read yesno < /dev/tty @@ -33,7 +36,7 @@ read yesno < /dev/tty if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then # Check for Homebrew, install if we don't have it if test ! $(which brew); then - echo "Installing homebrew..." + echo "\n โบ Installing homebrew...\n" ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" else echo "\n โœ… You already have installed homebrew.\n" @@ -54,7 +57,38 @@ else exit fi +# Install oh-my-zsh +echo -ne "\033[1mWould you like to install oh-my-zsh?\033[0m (yes/no) " +read yesno < /dev/tty -# Basic oh-my-zsh Installation -# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + + echo "\n โบ Checking prerequisites...\n" + + if test $(which git); then + echo โœ“ $(git --version) "\n" + else + exit + fi + + if test $(which curl); then + echo โœ“ $(curl --version) "\n" + else + exit + fi + + if test $(which zsh); then + echo โœ“ $(zsh --version) "\n" + else + exit + fi + + echo " โบ Installing oh-my-zsh...\n" + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + echo "\n โœ… Oh-my-zsh is installed.\n" + +else + echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" + exit +fi From b6b54b2b23fbe587866c125f2a3e510d74bf7ec2 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 14:36:20 +0100 Subject: [PATCH 06/33] feat: add npm setup --- scripts/setup.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index e980afc..23b36d0 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -57,6 +57,24 @@ else exit fi +# Install NPM Packages +echo -ne '\033[1mWould you like to install the Supercharged NPM packages?\033[0m (yes/no) ' +read yesno < /dev/tty + +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + + echo "\n โบ Installing the latest version of npm...\n" + npm install npm@latest -g + echo "\n โบ Installing the latest versions of the supercharged npm packages...\n" + npm install -g \ + @angular/cli@latest \ + @vue/cli@latest \ + @vue/cli-init@latest \ + pnpm@latest + echo "\n โœ… You installed the latest version of the global needed node modules.\n" + +fi + # Install oh-my-zsh echo -ne "\033[1mWould you like to install oh-my-zsh?\033[0m (yes/no) " From 270ab42aa02cd1d5ea41b327a7b1d4f83403f157 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 15:00:30 +0100 Subject: [PATCH 07/33] feat: add header stuff --- scripts/setup.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 23b36d0..cfbe2f6 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -6,18 +6,26 @@ # Based on Gerald baeck Bootstrap Script # - https://github.com/geraldbaeck/dotfiles/blob/master/osx_scripts/osx_bootstrap.sh -echo "\n\nStart bootstrapping your new mac.\n" +echo "\n\n Start bootstrapping your new mac.\n" echo -n " .----.\n" -echo -n " |>_ |\n" +echo -n " |\033[1m>_\033[0m |\n" echo -n " __|____|__\n" echo -n " | ______--|\n" echo -n " -/.::::.\-\n" echo -n " -------- \n\n" +echo -n " This setup is as simple as described here:\n" +echo -n " \033[1mhttps://www.youtube.com/watch?v=SGzkUgTgpa4\033[0m\n\n\n" + # Basic oh-my-zsh Installation # sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # get sudo rights for all the things + +main() { +} + + echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' read yesno < /dev/tty @@ -50,7 +58,12 @@ read yesno < /dev/tty if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then echo "\n โบ Installing homebrew packages ๐Ÿป...\n" - brew update && brew install zsh zsh-completions htop bmon + brew update && \ + brew install \ + zsh \ + zsh-completions \ + htop \ + bmon echo "\n โœ… All brew kegs are updated or installed.\n" else echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" @@ -110,3 +123,5 @@ else echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" exit fi + +main "$@" From 8644192b242e36d118683942d64c1e3acc10d00b Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 15:43:45 +0100 Subject: [PATCH 08/33] feat: add bash functions --- scripts/setup.sh | 171 ++++++++++++++++++++++++++--------------------- 1 file changed, 94 insertions(+), 77 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index cfbe2f6..71c6263 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -17,111 +17,128 @@ echo -n " -------- \n\n" echo -n " This setup is as simple as described here:\n" echo -n " \033[1mhttps://www.youtube.com/watch?v=SGzkUgTgpa4\033[0m\n\n\n" -# Basic oh-my-zsh Installation -# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - -# get sudo rights for all the things main() { -} + setup_shell + prerequisites + setup_homebrew + install_npm + setup_ohmyzsh -echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' -read yesno < /dev/tty +} -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then - sudo -v -else - echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" - exit -fi +prerequisites(){ -# Install Homebrew + echo "\n โบ Checking prerequisites...\n" -echo -ne '\033[1mDo you want to install Homebrew?\033[0m (yes/no) ' -read yesno < /dev/tty + if test $(which brew); then + echo โœ“ $(brew --version) "\n" -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then - # Check for Homebrew, install if we don't have it - if test ! $(which brew); then - echo "\n โบ Installing homebrew...\n" - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" else - echo "\n โœ… You already have installed homebrew.\n" + echo " ๐Ÿšซ brew is missing.\n" + install_homebrew fi -fi - -# Install or Update brew kegs -echo -ne '\033[1mInstall the Supercharged Homebrew Packages?\033[0m (yes/no) ' -read yesno < /dev/tty - -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then - echo "\n โบ Installing homebrew packages ๐Ÿป...\n" - brew update && \ - brew install \ - zsh \ - zsh-completions \ - htop \ - bmon - echo "\n โœ… All brew kegs are updated or installed.\n" -else - echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" - exit -fi + if test $(which curl); then + echo โœ“ $(curl --version) "\n" + fi -# Install NPM Packages -echo -ne '\033[1mWould you like to install the Supercharged NPM packages?\033[0m (yes/no) ' -read yesno < /dev/tty + if test $(which git); then + echo โœ“ $(git --version) "\n" + else + echo " ๐Ÿšซ git is missing.\n" + fi -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + if test $(which zsh); then + echo โœ“ $(zsh --version) "\n" + fi - echo "\n โบ Installing the latest version of npm...\n" - npm install npm@latest -g - echo "\n โบ Installing the latest versions of the supercharged npm packages...\n" - npm install -g \ - @angular/cli@latest \ - @vue/cli@latest \ - @vue/cli-init@latest \ - pnpm@latest - echo "\n โœ… You installed the latest version of the global needed node modules.\n" + echo "\n โœด๏ธ All the needed prerequisites are there.\n" -fi +} -# Install oh-my-zsh +setup_shell() { + # get sudo rights for all the things + echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' + read yesno < /dev/tty -echo -ne "\033[1mWould you like to install oh-my-zsh?\033[0m (yes/no) " -read yesno < /dev/tty + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + sudo -v + else + echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" + exit + fi +} -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then +install_homebrew() { + # Install Homebrew + echo -ne '\033[1mDo you want to install homebrew?\033[0m (yes/no) ' + read yesno < /dev/tty - echo "\n โบ Checking prerequisites...\n" + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + echo "\n โบ Installing homebrew...\n" + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" + fi +} - if test $(which git); then - echo โœ“ $(git --version) "\n" +setup_homebrew() { + # Install or Update brew kegs + echo -ne '\033[1mDo you want to isnstall the Supercharged homebrew packages?\033[0m (yes/no) ' + read yesno < /dev/tty + + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + echo "\n โบ Updating homebrew packages...\n" + brew update + echo "\n โบ Installing homebrew packages...\n" + brew install \ + zsh \ + zsh-completions \ + htop \ + bmon + echo "\n โœด๏ธ All brew kegs are updated or installed.\n" else + echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" exit fi +} + +install_npm() { + # Install NPM Packages + echo -ne '\033[1mWould you like to install the Supercharged NPM packages?\033[0m (yes/no) ' + read yesno < /dev/tty + + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + + echo "\n โบ Installing the latest version of npm...\n" + npm install npm@latest -g + echo "\n โบ Installing the latest versions of the supercharged npm packages...\n" + npm install -g \ + @angular/cli@latest \ + @vue/cli@latest \ + @vue/cli-init@latest \ + pnpm@latest + echo "\n โœด๏ธ You installed the latest version of the global needed node modules.\n" - if test $(which curl); then - echo โœ“ $(curl --version) "\n" - else - exit fi +} + +setup_ohmyzsh() { + # Install oh-my-zsh + + echo -ne "\033[1mWould you like to install oh-my-zsh?\033[0m (yes/no) " + read yesno < /dev/tty + + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + + echo " โบ Installing oh-my-zsh...\n" + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + echo "\n โœด๏ธ Oh-my-zsh is installed.\n" - if test $(which zsh); then - echo โœ“ $(zsh --version) "\n" else + echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" exit fi - - echo " โบ Installing oh-my-zsh...\n" - sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - echo "\n โœ… Oh-my-zsh is installed.\n" - -else - echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" - exit -fi +} main "$@" From 6ee4c2a0922d66c0a4dab37a71861cd6b8b9ac36 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Tue, 19 May 2020 20:44:54 +0200 Subject: [PATCH 09/33] fix: remove typo --- scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 71c6263..3886d95 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -84,7 +84,7 @@ install_homebrew() { setup_homebrew() { # Install or Update brew kegs - echo -ne '\033[1mDo you want to isnstall the Supercharged homebrew packages?\033[0m (yes/no) ' + echo -ne '\033[1mDo you want to install the Supercharged homebrew packages?\033[0m (yes/no) ' read yesno < /dev/tty if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then From 4c4a7d215684b9c2ded0e9e8b0039df2de7b46ef Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Tue, 19 May 2020 22:13:08 +0200 Subject: [PATCH 10/33] feat(setup): add brew bundle --- scripts/.gitignore | 1 + scripts/Brewfile | 56 ++++++++++++++++++++++++++++++++++++++++++++++ scripts/setup.sh | 13 ++++++----- 3 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 scripts/.gitignore create mode 100644 scripts/Brewfile diff --git a/scripts/.gitignore b/scripts/.gitignore new file mode 100644 index 0000000..55acb54 --- /dev/null +++ b/scripts/.gitignore @@ -0,0 +1 @@ +Brewfile.lock.json diff --git a/scripts/Brewfile b/scripts/Brewfile new file mode 100644 index 0000000..1f37868 --- /dev/null +++ b/scripts/Brewfile @@ -0,0 +1,56 @@ +tap "bazelbuild/tap" +tap "github/gh" +tap "heroku/brew" +tap "homebrew/bundle" +tap "homebrew/cask" +tap "homebrew/core" +brew "awscli" +brew "bat" +brew "bench" +brew "bitcoin" +brew "bmon" +brew "deno" +brew "duff" +brew "exa" +brew "fd" +brew "webp" +brew "ffmpeg" +brew "findutils" +brew "fish" +brew "fzf" +brew "git-lfs" +brew "htop" +brew "httpie" +brew "hub" +brew "hugo" +brew "imagemagick" +brew "imageoptim-cli" +brew "iperf" +brew "python" +brew "irssi" +brew "macvim" +brew "mariadb" +brew "midnight-commander" +brew "ncdu" +brew "nmap" +brew "node" +brew "nvm" +brew "p7zip" +brew "prettyping" +brew "progress" +brew "ranger" +brew "reattach-to-user-namespace" +brew "ripgrep" +brew "sassc" +brew "speedtest-cli" +brew "tmux" +brew "tor" +brew "wget" +brew "youtube-dl" +brew "zsh" +brew "zsh-completions" +brew "zstd" +brew "bazelbuild/tap/bazel" +brew "github/gh/gh" +brew "heroku/brew/heroku" +cask "basictex" diff --git a/scripts/setup.sh b/scripts/setup.sh index 3886d95..7cf20d6 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -89,13 +89,14 @@ setup_homebrew() { if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then echo "\n โบ Updating homebrew packages...\n" - brew update + + brew bundle check + echo "\n โบ Installing homebrew packages...\n" - brew install \ - zsh \ - zsh-completions \ - htop \ - bmon + + # https://github.com/Homebrew/homebrew-bundle + brew bundle --verbose --no-lock + echo "\n โœด๏ธ All brew kegs are updated or installed.\n" else echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" From 097e0a1e3aceb557df169cddf0fc7cf18e0295da Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Tue, 19 May 2020 22:35:36 +0200 Subject: [PATCH 11/33] feat(setup): add node bundles --- scripts/setup.sh | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 7cf20d6..1b2ed04 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -113,12 +113,44 @@ install_npm() { echo "\n โบ Installing the latest version of npm...\n" npm install npm@latest -g + echo "\n โœด๏ธ Latest npm version installed.\n\n" echo "\n โบ Installing the latest versions of the supercharged npm packages...\n" npm install -g \ @angular/cli@latest \ @vue/cli@latest \ @vue/cli-init@latest \ - pnpm@latest + contentful-cli@latest \ + ember-cli@latest \ + emma-cli@latest \ + emoj@latest \ + fast-cli@latest \ + favicon-emoji@latest \ + gatsby-cli@latest \ + gitmoji-cli@latest \ + graphql@latest \ + gulp@latest \ + gulp-cli@latest \ + netlify-cli@latest \ + nodemon@latest \ + npkill@latest \ + npm-check@latest \ + ntl@latest \ + parcel-bundler@latest \ + pm2@latest \ + pnpm@latest \ + prettier@latest \ + rollup@latest \ + sass@latest \ + semantic-release-cli@latest \ + standard-changelog@latest \ + strapi@latest \ + surge@latest \ + svelte@latest \ + vuepress@latest \ + webpack@latest \ + webpack-cli@latest \ + yarn@latest + echo "\n โœด๏ธ You installed the latest version of the global needed node modules.\n" fi From 6ca2cfe9c41e8a106fe018f5a31dc9125fdb6ce3 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Thu, 21 May 2020 22:51:19 +0200 Subject: [PATCH 12/33] feat(setup): add zplug to brew dump --- scripts/Brewfile | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Brewfile b/scripts/Brewfile index 1f37868..1576ddc 100644 --- a/scripts/Brewfile +++ b/scripts/Brewfile @@ -47,6 +47,7 @@ brew "tmux" brew "tor" brew "wget" brew "youtube-dl" +brew "zplug" brew "zsh" brew "zsh-completions" brew "zstd" From eecf3d1471f25afb6f99b1d6115641dd2382d4ff Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Tue, 31 Oct 2023 13:33:55 +0100 Subject: [PATCH 13/33] feat(setup): add new ascii art --- scripts/setup.sh | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 71861fe..cc98bb7 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -9,13 +9,29 @@ # git config --global --add difftool.prompt false # git config --global diff.tool opendiff -echo "\n\n Start bootstrapping your new mac.\n" -echo -n " .----.\n" -echo -n " |\033[1m>_\033[0m |\n" -echo -n " __|____|__\n" -echo -n " | ______--|\n" -echo -n " -/.::::.\-\n" -echo -n " -------- \n\n" + + +# +# +echo "\n\n Start bootstrapping your new mac...\n" +echo -n " _ _ __ _ _\n" +echo -n " __| |___| |_ / _(_) |___ ___\n" +echo -n " / _\` / _ \ _| _| | / -_|_-<\n" +echo -n " \__,_\___/\__|_| |_|_\___/__/\n" +# echo -n " \` /\n" +echo -n " โ–„โ–„โ–Œ โ– โ–„โ–Œโ–ช ยทโ–„โ–„โ–„โ–„โ€ข โ–„โ–„โ–„ยท โ–„โ–„โ–„ ยทโ–„โ–„โ–„โ–„\n" +echo -n " โ–ˆโ–ˆยท โ–ˆโ–Œโ–โ–ˆโ–ˆโ–ˆ โ–ชโ–€ยท.โ–ˆโ–Œโ–โ–ˆ โ–€โ–ˆ โ–€โ–„ โ–ˆยทโ–ˆโ–ˆโ–ช โ–ˆโ–ˆ\n" +echo -n " โ–ˆโ–ˆโ–ชโ–โ–ˆโ–โ–โ–Œโ–โ–ˆยทโ–„โ–ˆโ–€โ–€โ–€โ€ขโ–„โ–ˆโ–€โ–€โ–ˆ โ–โ–€โ–€โ–„ โ–โ–ˆยท โ–โ–ˆโ–Œ\n" +echo -n " โ–โ–ˆโ–Œโ–ˆโ–ˆโ–โ–ˆโ–Œโ–โ–ˆโ–Œโ–ˆโ–Œโ–ชโ–„โ–ˆโ–€โ–โ–ˆ โ–ชโ–โ–Œโ–โ–ˆโ€ขโ–ˆโ–Œโ–ˆโ–ˆ. โ–ˆโ–ˆ\n" +echo -n " โ–€โ–€โ–€โ–€ โ–€โ–ชโ–€โ–€โ–€ยทโ–€โ–€โ–€ โ€ข โ–€ โ–€ .โ–€ โ–€โ–€โ–€โ–€โ–€โ–€โ€ข\n\n\n" + + +# echo -n " .----.\n" +# echo -n " |\033[1m>_\033[0m |\n" +# echo -n " __|____|__\n" +# echo -n " | ______--|\n" +# echo -n " -/.::::.\-\n" +# echo -n " -------- \n\n" echo -n " This setup is as simple as described here:\n" echo -n " \033[1mhttps://www.youtube.com/watch?v=SGzkUgTgpa4\033[0m\n\n\n" From ca71c9f1fc68004436226363da36c5d7601c97ff Mon Sep 17 00:00:00 2001 From: Thomas Ott <693276+greenchapter@users.noreply.github.com> Date: Fri, 2 Aug 2024 12:46:59 +0200 Subject: [PATCH 14/33] fix(zsh): remove prompt emoji (#128) --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 239f42f..428760d 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -65,7 +65,7 @@ export SSH_KEY_PATH="~/.ssh/rsa_id" # Add Visual Studio Code to the prompt export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" -export PS1='%{$fg_bold[green]%}๐Ÿ•น๏ธ %{$reset_color%} $(nvm_prompt_version)%{$fg_bold[blue]%}%2~%{$reset_color%} $(my_git_prompt_info)%{$reset_color%}%Bยป%b ' +export PS1='%{$fg_bold[green]%} %{$reset_color%} $(nvm_prompt_version)%{$fg_bold[blue]%}%2~%{$reset_color%} $(my_git_prompt_info)%{$reset_color%}%Bยป%b ' fpath=(/usr/local/share/zsh-completions $fpath) From 567503e32e4820d79d25fcf67b96c910f71343ea Mon Sep 17 00:00:00 2001 From: Thomas Ott <693276+greenchapter@users.noreply.github.com> Date: Tue, 5 May 2026 14:05:22 +0200 Subject: [PATCH 15/33] chore: change github user mail address (#129) --- git/.gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/.gitconfig b/git/.gitconfig index 564332b..af9f279 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -20,7 +20,7 @@ [user] name = Thomas Ott - email = thomas.ott@greenchapter.de + email = 693276+greenchapter@users.noreply.github.com [filter "lfs"] clean = git-lfs clean -- %f From 6a77c07563c3a784795514f196031e595f5d700c Mon Sep 17 00:00:00 2001 From: Thomas Ott <693276+greenchapter@users.noreply.github.com> Date: Tue, 5 May 2026 14:06:27 +0200 Subject: [PATCH 16/33] chore: update iterm profile (#130) --- iterm/Supercharged.json | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/iterm/Supercharged.json b/iterm/Supercharged.json index fcca99f..e8bcda2 100644 --- a/iterm/Supercharged.json +++ b/iterm/Supercharged.json @@ -1,5 +1,11 @@ { - "Thin Strokes" : 0, + "Ansi 5 Color" : { + "Red Component" : 0.9637451171875, + "Color Space" : "sRGB", + "Blue Component" : 0.75890740260071698, + "Alpha Component" : 1, + "Green Component" : 0.48869594931602478 + }, "Working Directory" : "~", "Prompt Before Closing 2" : false, "Selected Text Color" : { @@ -9,7 +15,7 @@ "Alpha Component" : 1, "Green Component" : 1 }, - "Rows" : 28, + "Rows" : 25, "Ansi 11 Color" : { "Green Component" : 0.98039215686274506, "Red Component" : 0.94509803921568625, @@ -302,10 +308,6 @@ "Text" : "[1;5D", "Action" : 10 }, - "0xf701-0x280000" : { - "Text" : "0x1b 0x1b 0x5b 0x42", - "Action" : 11 - }, "0xf701-0x260000-0x0" : { "Text" : "[1;6B", "Action" : 10 @@ -334,10 +336,6 @@ "Text" : "[17;2~", "Action" : 10 }, - "0xf700-0x280000" : { - "Text" : "0x1b 0x1b 0x5b 0x41", - "Action" : 11 - }, "0x36-0x200000-0x0" : { "Text" : "6", "Action" : 12 @@ -611,11 +609,11 @@ }, "Transparency" : 0, "Background Color" : { - "Red Component" : 0.15686274509803921, + "Red Component" : 0.14901960784313725, "Color Space" : "sRGB", "Blue Component" : 0.21176470588235294, "Alpha Component" : 1, - "Green Component" : 0.16470588235294117 + "Green Component" : 0.16078431372549021 }, "Screen" : -1, "Initial Use Transparency" : false, @@ -625,16 +623,10 @@ "Red Component" : 1, "Blue Component" : 0.77647058823529413 }, - "Columns" : 150, + "Columns" : 122, "Use Tab Color" : false, "Visual Bell" : true, "Custom Directory" : "No", - "Ansi 5 Color" : { - "Red Component" : 0.9637451171875, - "Color Space" : "sRGB", - "Blue Component" : 0.75890740260071698, - "Alpha Component" : 1, - "Green Component" : 0.48869594931602478 - }, - "ASCII Ligatures" : false + "ASCII Ligatures" : false, + "Thin Strokes" : 0 } \ No newline at end of file From 5a4ee35cc69e1b778ea4e2d7c0c4d9d26e9a8317 Mon Sep 17 00:00:00 2001 From: Thomas Ott <693276+greenchapter@users.noreply.github.com> Date: Tue, 5 May 2026 16:41:29 +0200 Subject: [PATCH 17/33] fix(sublime): disable file indexing (#131) --- sublime/Preferences.sublime-settings | 1 + 1 file changed, 1 insertion(+) diff --git a/sublime/Preferences.sublime-settings b/sublime/Preferences.sublime-settings index f91feaf..180a4c6 100644 --- a/sublime/Preferences.sublime-settings +++ b/sublime/Preferences.sublime-settings @@ -56,4 +56,5 @@ "trim_trailing_white_space_on_save": true, "wide_caret": true, "word_wrap": true, + "index_files": false, } From d4cecf17afef9f27b40e9154fcbea041813a7f6c Mon Sep 17 00:00:00 2001 From: Thomas Ott <693276+greenchapter@users.noreply.github.com> Date: Tue, 5 May 2026 16:43:03 +0200 Subject: [PATCH 18/33] feat: add Python3 shell aliases (#132) --- zsh/custom/aliases.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zsh/custom/aliases.zsh b/zsh/custom/aliases.zsh index 574516b..1e950b1 100644 --- a/zsh/custom/aliases.zsh +++ b/zsh/custom/aliases.zsh @@ -39,3 +39,5 @@ alias gdk="git difftool" # Kubernetes export yaml='--dry-run=client -o yaml' # This way you can just run k run pod --image=nginx ${=yaml}. export now="--force --grace-period O" # This way you can run k delete pod ${=now}. +alias python='python3' +alias pip='pip3' From fcc399e0c47d0f6a2762458f45b8e21022ce48f4 Mon Sep 17 00:00:00 2001 From: Thomas Ott <693276+greenchapter@users.noreply.github.com> Date: Tue, 5 May 2026 16:44:54 +0200 Subject: [PATCH 19/33] feat(vim): update vim plugins and copilot node path (#133) --- vim/.vimrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index fb4d4ed..74ee6e7 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,20 +1,18 @@ set nocompatible set encoding=utf-8 nobomb filetype off - set ttimeout set ttimeoutlen=50 set timeoutlen=3000 - +let g:copilot_node_command = "/opt/homebrew/bin/node" set rtp+=/usr/local/opt/fzf set guioptions= set backspace=indent,eol,start " let g:clear_background=0 - " let s:bg = ['#282000', 236] call plug#begin() - +Plug 'sbdchd/neoformat' Plug 'dracula/vim' Plug 'othree/yajs.vim' Plug 'othree/html5.vim' @@ -28,6 +26,10 @@ Plug 'airblade/vim-gitgutter' Plug 'vim-syntastic/syntastic' Plug 'ctrlpvim/ctrlp.vim' Plug 'tpope/vim-fugitive' +Plug 'github/copilot.vim' +Plug 'othree/html5.vim' +Plug 'pangloss/vim-javascript' +Plug 'evanleck/vim-svelte', {'branch': 'main'} call plug#end() From ebb80988ae48bb79a2114ec7c816c9a0eb5e7742 Mon Sep 17 00:00:00 2001 From: Thomas Ott <693276+greenchapter@users.noreply.github.com> Date: Tue, 5 May 2026 16:45:50 +0200 Subject: [PATCH 20/33] fix: show the correct virtualenv in zsh prompt (#134) --- zsh/.zshrc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 428760d..12709de 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -24,6 +24,17 @@ CASE_SENSITIVE="true" # Uncomment following line if you want red dots to be displayed while waiting for completion COMPLETION_WAITING_DOTS="true" +# ZSH_THEME_VIRTUALENV_PREFIX='' +# ZSH_THEME_VIRTUALENV_SUFFIX='' +export VIRTUAL_ENV_DISABLE_PROMPT=1 + +function get_venv_name { + if [[ -n "$VIRTUAL_ENV" ]]; then + # Nimmt den Pfad aus $VIRTUAL_ENV und gibt nur den letzten Teil aus + echo "(${VIRTUAL_ENV:t}) " + fi +} + # Then, source plugins and add commands to $PATH export PATH=$HOME/bin:/usr/local/bin:$PATH export PATH="/opt/homebrew/bin:$PATH" @@ -32,8 +43,7 @@ export PATH="/opt/homebrew/sbin:$PATH" export MANPATH="/usr/local/man:$MANPATH" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ -plugins=(history-substring-search git sublime vscode git-extras nvm extract last-working-dir npm docker encode64 zsh-autosuggestions zsh-fzf-history-search kubectl) - +plugins=(history-substring-search git sublime vscode git-extras nvm extract last-working-dir npm docker encode64 zsh-autosuggestions zsh-fzf-history-search kubectl virtualenv) # Workaround to keep the git prompt plugin working # https://github.com/ohmyzsh/ohmyzsh/issues/12328 @@ -65,7 +75,7 @@ export SSH_KEY_PATH="~/.ssh/rsa_id" # Add Visual Studio Code to the prompt export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" -export PS1='%{$fg_bold[green]%} %{$reset_color%} $(nvm_prompt_version)%{$fg_bold[blue]%}%2~%{$reset_color%} $(my_git_prompt_info)%{$reset_color%}%Bยป%b ' +export PS1=' %{$fg_bold[green]%}$(get_venv_name)%{$reset_color%}$(nvm_prompt_version)%{$fg_bold[blue]%}%2~%{$reset_color%} $(my_git_prompt_info)%{$reset_color%}%Bยป%b ' fpath=(/usr/local/share/zsh-completions $fpath) From 887525a68d76c0b772ea996a56387fe5797f7ff2 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Mon, 18 Mar 2019 13:38:42 +0100 Subject: [PATCH 21/33] feat(setup): add homebrew packages --- scripts/setup.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index a0d94ac..f525cf9 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -40,8 +40,16 @@ fi # Update homebrew recipes brew update -# Install zsh Bash -brew install zsh zsh-completions +echo -n "Install the Supercharged Homebrew Packages? (y/n) " +read yesno < /dev/tty + +if [ "x$yesno" = "xy" ];then + # Check for Homebrew, install if we don't have it + if test ! $(which brew); then + echo "Installing homebrew packages ๐Ÿป..." + brew install zsh zsh-completions htop +fi + # Basic oh-my-zsh Installation sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" From 27157d97981045ce3c7f5ca8d0c0e3429354a6db Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Thu, 6 Jun 2019 20:39:25 +0200 Subject: [PATCH 22/33] feat: add git submodules --- .gitmodules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitmodules b/.gitmodules index e69de29..528856e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vim/.vim/bundle/vundle"] + path = vim/.vim/bundle/vundle + url = https://github.com/VundleVim/Vundle.vim.git From e68e5516349b2fcf349902ea848b3fd1c6390aaa Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Fri, 7 Jun 2019 10:02:49 +0200 Subject: [PATCH 23/33] feat: add first setuo file --- install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..88f1a45 --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +echo "cloning dotfiles." + +# git clone https://github.com/greenchapter/dotfiles.git $HOME/.dotfiles + +echo "init submodules." +# (cd $HOME/.dotfiles && git submodule update --init) + +for i in $(ls); do + echo "Link ${i} to $HOME/.$(basename ${i})."; + # ln -s ${i} "$HOME/.$(basename ${i})"; + done + +echo "Done." From 44429dd9ee0265f46a71c124148d68c0c774aba8 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 13:56:13 +0100 Subject: [PATCH 24/33] feat: restyle setup script --- scripts/setup.sh | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index f525cf9..35df43b 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -6,50 +6,55 @@ # Based on Gerald baeck Bootstrap Script # - https://github.com/geraldbaeck/dotfiles/blob/master/osx_scripts/osx_bootstrap.sh -# git config --global --add difftool.prompt false -# git config --global diff.tool opendiff - -echo "๐Ÿš€ Start bootstrapping your new mac." +echo "\n\nStart bootstrapping your new mac.\n" +echo -n " .----.\n" +echo -n " |>_ |\n" +echo -n " __|____|__\n" +echo -n " | ______--|\n" +echo -n " -/.::::.\-\n" +echo -n " -------- \n\n" # get sudo rights for all the things -echo -n "Get sudo rights for all the things. Is this ok? (y/n) " +echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' read yesno < /dev/tty -if [ "x$yesno" = "xy" ];then +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then sudo -v else echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" exit fi +# Install Homebrew -echo -n "Do you want to install Homebrew? (y/n) " +echo -ne '\033[1mDo you want to install Homebrew?\033[0m (yes/no) ' read yesno < /dev/tty -if [ "x$yesno" = "xy" ];then +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then # Check for Homebrew, install if we don't have it if test ! $(which brew); then echo "Installing homebrew..." ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" else - echo "You already have installed homebrew." + echo "\n โœ… You already have installed homebrew.\n" fi fi +# Install or Update brew kegs -# Update homebrew recipes -brew update - -echo -n "Install the Supercharged Homebrew Packages? (y/n) " +echo -ne '\033[1mInstall the Supercharged Homebrew Packages?\033[0m (yes/no) ' read yesno < /dev/tty -if [ "x$yesno" = "xy" ];then - # Check for Homebrew, install if we don't have it - if test ! $(which brew); then - echo "Installing homebrew packages ๐Ÿป..." - brew install zsh zsh-completions htop +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + echo "\n โบ Installing homebrew packages ๐Ÿป...\n" + brew update && brew install zsh zsh-completions htop bmon + echo "\n โœ… All brew kegs are updated or installed.\n" +else + echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" + exit fi + # Basic oh-my-zsh Installation -sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" From d1d91f738ced5c2cb63cd51f1cab6f0dd798739a Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 14:22:19 +0100 Subject: [PATCH 25/33] feat: add ohmyzsh setup --- scripts/setup.sh | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 35df43b..e980afc 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -14,6 +14,9 @@ echo -n " | ______--|\n" echo -n " -/.::::.\-\n" echo -n " -------- \n\n" +# Basic oh-my-zsh Installation +# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" + # get sudo rights for all the things echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' read yesno < /dev/tty @@ -33,7 +36,7 @@ read yesno < /dev/tty if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then # Check for Homebrew, install if we don't have it if test ! $(which brew); then - echo "Installing homebrew..." + echo "\n โบ Installing homebrew...\n" ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" else echo "\n โœ… You already have installed homebrew.\n" @@ -54,7 +57,38 @@ else exit fi +# Install oh-my-zsh +echo -ne "\033[1mWould you like to install oh-my-zsh?\033[0m (yes/no) " +read yesno < /dev/tty -# Basic oh-my-zsh Installation -# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + + echo "\n โบ Checking prerequisites...\n" + + if test $(which git); then + echo โœ“ $(git --version) "\n" + else + exit + fi + + if test $(which curl); then + echo โœ“ $(curl --version) "\n" + else + exit + fi + + if test $(which zsh); then + echo โœ“ $(zsh --version) "\n" + else + exit + fi + + echo " โบ Installing oh-my-zsh...\n" + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + echo "\n โœ… Oh-my-zsh is installed.\n" + +else + echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" + exit +fi From b1bb2e5ceb82392262cdd6310ade36416f670b3e Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 14:36:20 +0100 Subject: [PATCH 26/33] feat: add npm setup --- scripts/setup.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index e980afc..23b36d0 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -57,6 +57,24 @@ else exit fi +# Install NPM Packages +echo -ne '\033[1mWould you like to install the Supercharged NPM packages?\033[0m (yes/no) ' +read yesno < /dev/tty + +if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + + echo "\n โบ Installing the latest version of npm...\n" + npm install npm@latest -g + echo "\n โบ Installing the latest versions of the supercharged npm packages...\n" + npm install -g \ + @angular/cli@latest \ + @vue/cli@latest \ + @vue/cli-init@latest \ + pnpm@latest + echo "\n โœ… You installed the latest version of the global needed node modules.\n" + +fi + # Install oh-my-zsh echo -ne "\033[1mWould you like to install oh-my-zsh?\033[0m (yes/no) " From 78aacd4c2f7f368752cc9581032023f97f8fee35 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 15:00:30 +0100 Subject: [PATCH 27/33] feat: add header stuff --- scripts/setup.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 23b36d0..cfbe2f6 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -6,18 +6,26 @@ # Based on Gerald baeck Bootstrap Script # - https://github.com/geraldbaeck/dotfiles/blob/master/osx_scripts/osx_bootstrap.sh -echo "\n\nStart bootstrapping your new mac.\n" +echo "\n\n Start bootstrapping your new mac.\n" echo -n " .----.\n" -echo -n " |>_ |\n" +echo -n " |\033[1m>_\033[0m |\n" echo -n " __|____|__\n" echo -n " | ______--|\n" echo -n " -/.::::.\-\n" echo -n " -------- \n\n" +echo -n " This setup is as simple as described here:\n" +echo -n " \033[1mhttps://www.youtube.com/watch?v=SGzkUgTgpa4\033[0m\n\n\n" + # Basic oh-my-zsh Installation # sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # get sudo rights for all the things + +main() { +} + + echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' read yesno < /dev/tty @@ -50,7 +58,12 @@ read yesno < /dev/tty if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then echo "\n โบ Installing homebrew packages ๐Ÿป...\n" - brew update && brew install zsh zsh-completions htop bmon + brew update && \ + brew install \ + zsh \ + zsh-completions \ + htop \ + bmon echo "\n โœ… All brew kegs are updated or installed.\n" else echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" @@ -110,3 +123,5 @@ else echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" exit fi + +main "$@" From 52b2bfde84260f77b5e0177c9737fc78323d03be Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Sat, 7 Mar 2020 15:43:45 +0100 Subject: [PATCH 28/33] feat: add bash functions --- scripts/setup.sh | 171 ++++++++++++++++++++++++++--------------------- 1 file changed, 94 insertions(+), 77 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index cfbe2f6..71c6263 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -17,111 +17,128 @@ echo -n " -------- \n\n" echo -n " This setup is as simple as described here:\n" echo -n " \033[1mhttps://www.youtube.com/watch?v=SGzkUgTgpa4\033[0m\n\n\n" -# Basic oh-my-zsh Installation -# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - -# get sudo rights for all the things main() { -} + setup_shell + prerequisites + setup_homebrew + install_npm + setup_ohmyzsh -echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' -read yesno < /dev/tty +} -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then - sudo -v -else - echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" - exit -fi +prerequisites(){ -# Install Homebrew + echo "\n โบ Checking prerequisites...\n" -echo -ne '\033[1mDo you want to install Homebrew?\033[0m (yes/no) ' -read yesno < /dev/tty + if test $(which brew); then + echo โœ“ $(brew --version) "\n" -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then - # Check for Homebrew, install if we don't have it - if test ! $(which brew); then - echo "\n โบ Installing homebrew...\n" - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" else - echo "\n โœ… You already have installed homebrew.\n" + echo " ๐Ÿšซ brew is missing.\n" + install_homebrew fi -fi - -# Install or Update brew kegs -echo -ne '\033[1mInstall the Supercharged Homebrew Packages?\033[0m (yes/no) ' -read yesno < /dev/tty - -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then - echo "\n โบ Installing homebrew packages ๐Ÿป...\n" - brew update && \ - brew install \ - zsh \ - zsh-completions \ - htop \ - bmon - echo "\n โœ… All brew kegs are updated or installed.\n" -else - echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" - exit -fi + if test $(which curl); then + echo โœ“ $(curl --version) "\n" + fi -# Install NPM Packages -echo -ne '\033[1mWould you like to install the Supercharged NPM packages?\033[0m (yes/no) ' -read yesno < /dev/tty + if test $(which git); then + echo โœ“ $(git --version) "\n" + else + echo " ๐Ÿšซ git is missing.\n" + fi -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + if test $(which zsh); then + echo โœ“ $(zsh --version) "\n" + fi - echo "\n โบ Installing the latest version of npm...\n" - npm install npm@latest -g - echo "\n โบ Installing the latest versions of the supercharged npm packages...\n" - npm install -g \ - @angular/cli@latest \ - @vue/cli@latest \ - @vue/cli-init@latest \ - pnpm@latest - echo "\n โœ… You installed the latest version of the global needed node modules.\n" + echo "\n โœด๏ธ All the needed prerequisites are there.\n" -fi +} -# Install oh-my-zsh +setup_shell() { + # get sudo rights for all the things + echo -ne '\033[1mGet sudo rights for all the things. Is this ok?\033[0m (yes/no) ' + read yesno < /dev/tty -echo -ne "\033[1mWould you like to install oh-my-zsh?\033[0m (yes/no) " -read yesno < /dev/tty + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + sudo -v + else + echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" + exit + fi +} -if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then +install_homebrew() { + # Install Homebrew + echo -ne '\033[1mDo you want to install homebrew?\033[0m (yes/no) ' + read yesno < /dev/tty - echo "\n โบ Checking prerequisites...\n" + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + echo "\n โบ Installing homebrew...\n" + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" + fi +} - if test $(which git); then - echo โœ“ $(git --version) "\n" +setup_homebrew() { + # Install or Update brew kegs + echo -ne '\033[1mDo you want to isnstall the Supercharged homebrew packages?\033[0m (yes/no) ' + read yesno < /dev/tty + + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + echo "\n โบ Updating homebrew packages...\n" + brew update + echo "\n โบ Installing homebrew packages...\n" + brew install \ + zsh \ + zsh-completions \ + htop \ + bmon + echo "\n โœด๏ธ All brew kegs are updated or installed.\n" else + echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" exit fi +} + +install_npm() { + # Install NPM Packages + echo -ne '\033[1mWould you like to install the Supercharged NPM packages?\033[0m (yes/no) ' + read yesno < /dev/tty + + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + + echo "\n โบ Installing the latest version of npm...\n" + npm install npm@latest -g + echo "\n โบ Installing the latest versions of the supercharged npm packages...\n" + npm install -g \ + @angular/cli@latest \ + @vue/cli@latest \ + @vue/cli-init@latest \ + pnpm@latest + echo "\n โœด๏ธ You installed the latest version of the global needed node modules.\n" - if test $(which curl); then - echo โœ“ $(curl --version) "\n" - else - exit fi +} + +setup_ohmyzsh() { + # Install oh-my-zsh + + echo -ne "\033[1mWould you like to install oh-my-zsh?\033[0m (yes/no) " + read yesno < /dev/tty + + if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then + + echo " โบ Installing oh-my-zsh...\n" + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + echo "\n โœด๏ธ Oh-my-zsh is installed.\n" - if test $(which zsh); then - echo โœ“ $(zsh --version) "\n" else + echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" exit fi - - echo " โบ Installing oh-my-zsh...\n" - sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - echo "\n โœ… Oh-my-zsh is installed.\n" - -else - echo "Sorry, these script only runs with root rights. ๐Ÿ™ˆ" - exit -fi +} main "$@" From f3e604dda49a69dd6e81f7786af0a9212a100fe5 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Tue, 19 May 2020 20:44:54 +0200 Subject: [PATCH 29/33] fix: remove typo --- scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 71c6263..3886d95 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -84,7 +84,7 @@ install_homebrew() { setup_homebrew() { # Install or Update brew kegs - echo -ne '\033[1mDo you want to isnstall the Supercharged homebrew packages?\033[0m (yes/no) ' + echo -ne '\033[1mDo you want to install the Supercharged homebrew packages?\033[0m (yes/no) ' read yesno < /dev/tty if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then From 854196f229622644e404c8762910d4db97106bde Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Tue, 19 May 2020 22:13:08 +0200 Subject: [PATCH 30/33] feat(setup): add brew bundle --- scripts/.gitignore | 1 + scripts/Brewfile | 56 ++++++++++++++++++++++++++++++++++++++++++++++ scripts/setup.sh | 13 ++++++----- 3 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 scripts/.gitignore create mode 100644 scripts/Brewfile diff --git a/scripts/.gitignore b/scripts/.gitignore new file mode 100644 index 0000000..55acb54 --- /dev/null +++ b/scripts/.gitignore @@ -0,0 +1 @@ +Brewfile.lock.json diff --git a/scripts/Brewfile b/scripts/Brewfile new file mode 100644 index 0000000..1f37868 --- /dev/null +++ b/scripts/Brewfile @@ -0,0 +1,56 @@ +tap "bazelbuild/tap" +tap "github/gh" +tap "heroku/brew" +tap "homebrew/bundle" +tap "homebrew/cask" +tap "homebrew/core" +brew "awscli" +brew "bat" +brew "bench" +brew "bitcoin" +brew "bmon" +brew "deno" +brew "duff" +brew "exa" +brew "fd" +brew "webp" +brew "ffmpeg" +brew "findutils" +brew "fish" +brew "fzf" +brew "git-lfs" +brew "htop" +brew "httpie" +brew "hub" +brew "hugo" +brew "imagemagick" +brew "imageoptim-cli" +brew "iperf" +brew "python" +brew "irssi" +brew "macvim" +brew "mariadb" +brew "midnight-commander" +brew "ncdu" +brew "nmap" +brew "node" +brew "nvm" +brew "p7zip" +brew "prettyping" +brew "progress" +brew "ranger" +brew "reattach-to-user-namespace" +brew "ripgrep" +brew "sassc" +brew "speedtest-cli" +brew "tmux" +brew "tor" +brew "wget" +brew "youtube-dl" +brew "zsh" +brew "zsh-completions" +brew "zstd" +brew "bazelbuild/tap/bazel" +brew "github/gh/gh" +brew "heroku/brew/heroku" +cask "basictex" diff --git a/scripts/setup.sh b/scripts/setup.sh index 3886d95..7cf20d6 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -89,13 +89,14 @@ setup_homebrew() { if [ "x$yesno" = "xy" ] || [ "x$yesno" = "xyes" ];then echo "\n โบ Updating homebrew packages...\n" - brew update + + brew bundle check + echo "\n โบ Installing homebrew packages...\n" - brew install \ - zsh \ - zsh-completions \ - htop \ - bmon + + # https://github.com/Homebrew/homebrew-bundle + brew bundle --verbose --no-lock + echo "\n โœด๏ธ All brew kegs are updated or installed.\n" else echo "Sorry, Supercharged only works with installed brew kegs ๐Ÿ™ˆ" From 08e99f3862ab4829196e7e53869a8edc0d221eed Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Tue, 19 May 2020 22:35:36 +0200 Subject: [PATCH 31/33] feat(setup): add node bundles --- scripts/setup.sh | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 7cf20d6..1b2ed04 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -113,12 +113,44 @@ install_npm() { echo "\n โบ Installing the latest version of npm...\n" npm install npm@latest -g + echo "\n โœด๏ธ Latest npm version installed.\n\n" echo "\n โบ Installing the latest versions of the supercharged npm packages...\n" npm install -g \ @angular/cli@latest \ @vue/cli@latest \ @vue/cli-init@latest \ - pnpm@latest + contentful-cli@latest \ + ember-cli@latest \ + emma-cli@latest \ + emoj@latest \ + fast-cli@latest \ + favicon-emoji@latest \ + gatsby-cli@latest \ + gitmoji-cli@latest \ + graphql@latest \ + gulp@latest \ + gulp-cli@latest \ + netlify-cli@latest \ + nodemon@latest \ + npkill@latest \ + npm-check@latest \ + ntl@latest \ + parcel-bundler@latest \ + pm2@latest \ + pnpm@latest \ + prettier@latest \ + rollup@latest \ + sass@latest \ + semantic-release-cli@latest \ + standard-changelog@latest \ + strapi@latest \ + surge@latest \ + svelte@latest \ + vuepress@latest \ + webpack@latest \ + webpack-cli@latest \ + yarn@latest + echo "\n โœด๏ธ You installed the latest version of the global needed node modules.\n" fi From 023bd3d977c95d9fdce2559f5b6145efc939fbb6 Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Thu, 21 May 2020 22:51:19 +0200 Subject: [PATCH 32/33] feat(setup): add zplug to brew dump --- scripts/Brewfile | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Brewfile b/scripts/Brewfile index 1f37868..1576ddc 100644 --- a/scripts/Brewfile +++ b/scripts/Brewfile @@ -47,6 +47,7 @@ brew "tmux" brew "tor" brew "wget" brew "youtube-dl" +brew "zplug" brew "zsh" brew "zsh-completions" brew "zstd" From bb0d9dfeb0445fb8eff9a60fb27f5882bba1802a Mon Sep 17 00:00:00 2001 From: Thomas Ott Date: Tue, 31 Oct 2023 13:33:55 +0100 Subject: [PATCH 33/33] feat(setup): add new ascii art --- scripts/setup.sh | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 1b2ed04..cc98bb7 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -6,13 +6,32 @@ # Based on Gerald baeck Bootstrap Script # - https://github.com/geraldbaeck/dotfiles/blob/master/osx_scripts/osx_bootstrap.sh -echo "\n\n Start bootstrapping your new mac.\n" -echo -n " .----.\n" -echo -n " |\033[1m>_\033[0m |\n" -echo -n " __|____|__\n" -echo -n " | ______--|\n" -echo -n " -/.::::.\-\n" -echo -n " -------- \n\n" +# git config --global --add difftool.prompt false +# git config --global diff.tool opendiff + + + +# +# +echo "\n\n Start bootstrapping your new mac...\n" +echo -n " _ _ __ _ _\n" +echo -n " __| |___| |_ / _(_) |___ ___\n" +echo -n " / _\` / _ \ _| _| | / -_|_-<\n" +echo -n " \__,_\___/\__|_| |_|_\___/__/\n" +# echo -n " \` /\n" +echo -n " โ–„โ–„โ–Œ โ– โ–„โ–Œโ–ช ยทโ–„โ–„โ–„โ–„โ€ข โ–„โ–„โ–„ยท โ–„โ–„โ–„ ยทโ–„โ–„โ–„โ–„\n" +echo -n " โ–ˆโ–ˆยท โ–ˆโ–Œโ–โ–ˆโ–ˆโ–ˆ โ–ชโ–€ยท.โ–ˆโ–Œโ–โ–ˆ โ–€โ–ˆ โ–€โ–„ โ–ˆยทโ–ˆโ–ˆโ–ช โ–ˆโ–ˆ\n" +echo -n " โ–ˆโ–ˆโ–ชโ–โ–ˆโ–โ–โ–Œโ–โ–ˆยทโ–„โ–ˆโ–€โ–€โ–€โ€ขโ–„โ–ˆโ–€โ–€โ–ˆ โ–โ–€โ–€โ–„ โ–โ–ˆยท โ–โ–ˆโ–Œ\n" +echo -n " โ–โ–ˆโ–Œโ–ˆโ–ˆโ–โ–ˆโ–Œโ–โ–ˆโ–Œโ–ˆโ–Œโ–ชโ–„โ–ˆโ–€โ–โ–ˆ โ–ชโ–โ–Œโ–โ–ˆโ€ขโ–ˆโ–Œโ–ˆโ–ˆ. โ–ˆโ–ˆ\n" +echo -n " โ–€โ–€โ–€โ–€ โ–€โ–ชโ–€โ–€โ–€ยทโ–€โ–€โ–€ โ€ข โ–€ โ–€ .โ–€ โ–€โ–€โ–€โ–€โ–€โ–€โ€ข\n\n\n" + + +# echo -n " .----.\n" +# echo -n " |\033[1m>_\033[0m |\n" +# echo -n " __|____|__\n" +# echo -n " | ______--|\n" +# echo -n " -/.::::.\-\n" +# echo -n " -------- \n\n" echo -n " This setup is as simple as described here:\n" echo -n " \033[1mhttps://www.youtube.com/watch?v=SGzkUgTgpa4\033[0m\n\n\n"