@@ -29,8 +29,6 @@ brew upgrade
2929brew install coreutils
3030echo " Don’t forget to add $( brew --prefix coreutils) /libexec/gnubin to \$ PATH."
3131
32- brew tap homebrew/cask
33-
3432# Utility function to install cask formulas
3533function installcask() {
3634 if brew info --cask " ${@ } " | grep " Not installed" > /dev/null; then
@@ -40,9 +38,6 @@ function installcask() {
4038 fi
4139}
4240
43- # Tap all the cask verision from homebrew
44- brew tap homebrew/cask-versions
45-
4641# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
4742brew install findutils
4843
@@ -51,26 +46,23 @@ brew install bash
5146brew install zsh zsh-completions
5247brew install shellcheck
5348
54- # Install wget with IRI support
55- brew install wget --with-iri
56- brew install curl --with-ssl --with-ssh
57- # Install GNU `sed`, overwriting the built-in `sed`.
58- brew install gnu-sed --with-default-names
59-
60- # Install more recent versions of some OS X tools
61- brew tap josegonzalez/homebrew-php
49+ # Install wget and curl
50+ brew install wget
51+ brew install curl
52+ # Install GNU `sed`
53+ brew install gnu-sed
6254
6355# Use `assume` for cloud tasks
6456brew tap common-fate/granted
6557brew install chamber # CLI for managing secrets through AWS SSM Parameter Store
6658
6759# Install everything else
68- caskinstall sublime-text
69- brew install visual-studio-code
60+ installcask sublime-text
61+ installcask visual-studio-code
7062brew install openssl
7163brew install ack
7264brew install git git-extras hub git-ftp git-crypt
73- brew install rename htop-osx tree ngrep mtr nmap
65+ brew install rename htop tree ngrep mtr nmap
7466brew install autojump
7567brew install legit # http://www.git-legit.org/
7668# brew install Zopfli # https://code.google.com/p/zopfli/
@@ -149,8 +141,6 @@ brew install gdal
149141brew install postgis
150142
151143# Fonts
152- brew tap homebrew/cask-fonts
153-
154144installcask font-source-code-pro
155145
156146# Python packages (pip is included with Python 3 from brew)
@@ -161,7 +151,8 @@ pip3 install -r requirements.pip
161151# ###############################################################################
162152
163153brew install mysql
164- brew install mongo
154+ brew tap mongodb/brew
155+ brew install mongodb-community
165156brew install redis
166157brew install elasticsearch
167158
@@ -191,12 +182,10 @@ brew install datawire/blackbird/telepresence2
191182
192183brew install diff-so-fancy
193184brew link xz && brew install weechat
194- installcask sublime-text
195185brew install tmux
196186brew install cookiecutter
197187
198188# Some frontend stuff
199- brew install node
200189npm i -g postcss-cli
201190npm i -g autoprefixer
202191
@@ -214,7 +203,7 @@ installcask slack
214203# brew install lastpass-cli --with-pinentry
215204brew install bitwarden
216205# Install howdoi CLI tool
217- brew install https://raw.github.com/gleitz/ howdoi/master/howdoi.rb
206+ pip3 install howdoi
218207brew install tor
219208brew install spotify
220209
@@ -258,29 +247,37 @@ install_oh_my_zsh
258247# Zsh #
259248# ##############################################################################
260249
261- set -P
262250# Install Zsh settings
263251ln -sf " $PWD " /zsh/themes/curiouslearner.zsh-theme " $HOME " /.oh-my-zsh/themes
252+
264253# Zsh Syntax highlighting
265- git clone https://github.com/zsh-users/zsh-syntax-highlighting.git " ${ZSH_CUSTOM:- ~/ .oh-my-zsh/ custom} " /plugins/zsh-syntax-highlighting
254+ ZSH_CUSTOM=" ${ZSH_CUSTOM:- $HOME / .oh-my-zsh/ custom} "
255+ if [[ ! -d " $ZSH_CUSTOM /plugins/zsh-syntax-highlighting" ]]; then
256+ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git " $ZSH_CUSTOM /plugins/zsh-syntax-highlighting"
257+ fi
266258
267- # # Install PowerLevel10k theme
268- git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~ /powerlevel10k
259+ # Install PowerLevel10k theme
260+ if [[ ! -d " $HOME /powerlevel10k" ]]; then
261+ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git " $HOME /powerlevel10k"
262+ fi
269263
270264# Create symlinks for zshrc and p10k.zsh config
271- # But backup the current one so that
272- # symlinks can be created.
273- mv " /Users/$( whoami) /.zshrc" " /Users/$( whoami) /.zshrc.bak"
274- mv " /Users/$( whoami) /.p10k.zsh" " /Users/$( whoami) /.p10k.zsh.bak"
275- ln -s " /Users/$( whoami) /dotfiles/.zshrc" " /Users/$( whoami) /.zshrc"
276- ln -s " /Users/$( whoami) /dotfiles/.p10k.zsh" " /Users/$( whoami) /.p10k.zsh"
277-
278- # Install fonts for powerline 10k
279-
280- test ! -f ~ /Library/Fonts/MesloLGS\ NF\ Bold\ Italic.ttf && curl https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf > ~ /Library/Fonts/MesloLGS\ NF\ Bold\ Italic.ttf
281- test ! -f ~ /Library/Fonts/MesloLGS\ NF\ Regular.ttf && curl https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf > ~ /Library/Fonts/MesloLGS\ NF\ Regular.ttf
282- test ! -f ~ /Library/Fonts/MesloLGS\ NF\ Italic.ttf && curl https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf > ~ /Library/Fonts/MesloLGS\ NF\ Italic.ttf
283- test ! -f ~ /Library/Fonts/MesloLGS\ NF\ Bold.ttf && curl https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf > ~ /Library/Fonts/MesloLGS\ NF\ Bold.ttf
265+ # Backup existing files if they exist and are not symlinks
266+ [[ -f " $HOME /.zshrc" && ! -L " $HOME /.zshrc" ]] && mv " $HOME /.zshrc" " $HOME /.zshrc.bak"
267+ [[ -f " $HOME /.p10k.zsh" && ! -L " $HOME /.p10k.zsh" ]] && mv " $HOME /.p10k.zsh" " $HOME /.p10k.zsh.bak"
268+ ln -sf " $HOME /dotfiles/.zshrc" " $HOME /.zshrc"
269+ ln -sf " $HOME /dotfiles/.p10k.zsh" " $HOME /.p10k.zsh"
270+
271+ # Install fonts for PowerLevel10k
272+ mkdir -p " $HOME /Library/Fonts"
273+ curl -fLo " $HOME /Library/Fonts/MesloLGS NF Bold Italic.ttf" --create-dirs \
274+ " https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf"
275+ curl -fLo " $HOME /Library/Fonts/MesloLGS NF Regular.ttf" \
276+ " https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf"
277+ curl -fLo " $HOME /Library/Fonts/MesloLGS NF Italic.ttf" \
278+ " https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf"
279+ curl -fLo " $HOME /Library/Fonts/MesloLGS NF Bold.ttf" \
280+ " https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf"
284281
285282
286283# Remove outdated versions from the cellar
0 commit comments