Skip to content

Commit

Permalink
use ruby 3, update brew versions, separate entertainment from main br…
Browse files Browse the repository at this point in the history
…ewfile
  • Loading branch information
f1337 committed Mar 30, 2022
1 parent a367ecd commit 2683966
Show file tree
Hide file tree
Showing 7 changed files with 527 additions and 193 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nodejs lts
yarn 1.22.10
ruby 2.7.2
ruby 3.1.1
java adoptopenjdk-8.0.312+7

6 changes: 2 additions & 4 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,9 @@ alias ll="ls -la"

# ansible
export ANSIBLE_COW_SELECTION=sloth
#export ANSIBLE_COW_PATH=/usr/local/bin/lolcowsay
#export ANSIBLE_COWPATH=$ANSIBLE_COW_PATH

# autojump
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
[ -f $(brew --prefix)/etc/profile.d/autojump.sh ] && . $(brew --prefix)/etc/profile.d/autojump.sh

# thefuck
eval $(thefuck --alias wat)
Expand All @@ -146,7 +144,7 @@ command_not_found_handler () {
}

# zsh-autosuggestions
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh

# powerlevel customizations
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs)
Expand Down
16 changes: 7 additions & 9 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,34 @@ brew "asdf"
brew "autojump"
brew "cowsay"
brew "fortune"
brew "gpg"
brew "gh"
brew "jq"
brew "mas"
brew "ponysay"
brew "skhd", restart_service: true
#brew "skhd", restart_service: true
brew "terminal-notifier"
brew "thefuck"
brew "tig"
brew "yabai", restart_service: true
#brew "yabai", restart_service: true
brew "zsh"
brew "zsh-autosuggestions"
brew "cjbassi/ytop/ytop"
cask "1password"
cask "alfred"
cask "brave-browser"
cask "choosy"
#cask "choosy"
cask "dash"
cask "discord"
cask "firefox"
cask "font-meslo-for-powerline"
cask "google-chrome"
cask "iris"
cask "iterm2"
cask "keybase"
cask "minecraft"
#cask "keybase"
cask "pock"
cask "screen"
#cask "screen"
cask "seashore"
cask "slack"
cask "sonic-pi"
cask "steam"
cask "sync"
cask "teensy"
cask "tor-browser"
Expand Down
640 changes: 485 additions & 155 deletions Brewfile.lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Entertainment.brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cask "bluestacks"
cask "discord"
cask "minecraft"
cask "sonic-pi"
cask "steam"
50 changes: 26 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,46 @@ help: ## print documentation for available commands
}' $(MAKEFILE_LIST)

.PHONY: install
install: brew bundle asdf cows git pock sounds vscode wm zsh ## install & configure everything
install: brew bundle asdf cows git pock sounds vscode zsh #wm ## install & configure everything

.PHONY: brew
brew: ## install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
sh -c $$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)

.PHONY: bundle
bundle: brew ## install apps from Brewfile
brew bundle

.PHONY: asdf
asdf: ## configure asdf, install plugins
ln -s $(pwd)/.asdfrc ~/.asdfrc
ln -s $(pwd)/.tool-versions ~/.tool-versions
ln -s $(pwd)/gemrc ~/.gemrc
asdf plugin-add ruby
ln -Ffs $(PWD)/.asdfrc ~/.asdfrc
ln -Ffs $(PWD)/.tool-versions ~/.tool-versions
ln -Ffs $(PWD)/gemrc ~/.gemrc
asdf plugin-add ruby | sed '/already/d'
asdf install ruby latest
asdf plugin-add nodejs
asdf plugin-add nodejs | sed '/already/d'
asdf install nodejs lts
asdf plugin-add yarn
asdf plugin-add yarn | sed '/already/d'
asdf install yarn latest

.PHONY: cows
cows: ## install lolcat, custom cows
sudo gem install lolcat
install -m 644 cows/*.cow /usr/local/opt/cowsay/share/cows/
# cp lolcowsay /usr/local/bin/
# ln -s $(pwd)/lolcowsay /usr/local/bin/lolcowsay
install -m 644 cows/*.cow $(HOMEBREW_PREFIX)/opt/cowsay/share/cows/
ln -Ffs $(PWD)/lolcowsay /usr/local/bin/lolcowsay

.PHONY: entertainment
entertainment: ## install entertainment apps
brew bundle --file=Entertainment.brewfile

.PHONY: git
git: ## configure git
ln -s $(pwd)/.gitconfig ~/.gitconfig
ln -s $(pwd)/.gitignore ~/.gitignore
ln -Ffs $(PWD)/.gitconfig ~/.gitconfig
ln -Ffs $(PWD)/.gitignore ~/.gitignore

.PHONY: pock
pock: ## configure pock
ln -s $(pwd)/Library/Preferences/com.pigigaldi.pock.plist ~/Library/Preferences/com.pigigaldi.pock.plist
ln -Ffs $(PWD)/Library/Preferences/com.pigigaldi.pock.plist ~/Library/Preferences/com.pigigaldi.pock.plist

.PHONY: sounds
sounds: ## install custom notification sounds
Expand All @@ -55,7 +58,7 @@ sounds: ## install custom notification sounds
.PHONY: ubersicht
ubersicht: ## configure ubersicht
rm -rf ~/Library/Application\ Support/Übersicht/widgets
ln -s $(pwd)/ubersicht/widgets ~/Library/Application\ Support/Übersicht/
ln -Ffs $(PWD)/ubersicht/widgets ~/Library/Application\ Support/Übersicht/

.PHONY: vscode
vscode: ## configure vscode, install extensions
Expand All @@ -71,13 +74,12 @@ vscode: ## configure vscode, install extensions
code --install-extension mikestead.dotenv
code --install-extension ms-azuretools.vscode-docker
code --install-extension rebornix.ruby
code --install-extension robertohuertasm.vscode-icons
code --install-extension streetsidesoftware.code-spell-checker
code --install-extension TabNine.tabnine-vscode
code --install-extension wingrunr21.vscode-ruby
code --install-extension ziyasal.vscode-open-in-github
ln -s $(pwd)/Code/keybindings.json ~/Library/Application\ Support/Code/User/
ln -s $(pwd)/Code/settings.json ~/Library/Application\ Support/Code/User/
ln -Ffs $(PWD)/Code/keybindings.json ~/Library/Application\ Support/Code/User/
ln -Ffs $(PWD)/Code/settings.json ~/Library/Application\ Support/Code/User/

.PHONY: wm
wm: $(HOME)/.skhdrc $(HOME)/.yabairc ## configure yabai wm
Expand All @@ -87,14 +89,14 @@ wm: $(HOME)/.skhdrc $(HOME)/.yabairc ## configure yabai wm
brew services restart skhd

$(HOME)/.skhdrc:
ln -s $(pwd)/skhdrc $(HOME)/.skhdrc
ln -Ffs $(PWD)/skhdrc $(HOME)/.skhdrc

$(HOME)/.yabairc:
ln -s $(pwd)/yabairc $(HOME)/.yabairc
ln -Ffs $(PWD)/yabairc $(HOME)/.yabairc

.PHONY: zsh
zsh: # configure zsh, install plugins
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/bhilburn/powerlevel9k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel9k
git clone git@github.com:marzocchi/zsh-notify.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/notify
ln -s $(pwd)/.zshrc ~/.zshrc
sh -c $$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)
ln -Ffs $(PWD)/.zshrc ~/.zshrc
git clone https://github.com/bhilburn/powerlevel9k.git $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel9k
git clone [email protected]:marzocchi/zsh-notify.git $${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/notify
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Automated Install

```
make install
make entertainment # optionally install entertainment software
```

See the [Makefile](Makefile) and [Brewfile](Brewfile) for details about what exactly is installed.
Expand Down

0 comments on commit 2683966

Please sign in to comment.