diff --git a/homebrew/install_once.sh b/homebrew/install_once.sh new file mode 100644 index 0000000..e70a02d --- /dev/null +++ b/homebrew/install_once.sh @@ -0,0 +1,11 @@ +#!/user/bin/env bash +# vim:set ft=bash: + +install_once() +{ + if brew ls --versions "$1"; then + brew upgrade "$1" + else + brew install "$1" + fi +} diff --git a/zsh/.zprofile.symlink b/zsh/.zprofile.symlink new file mode 100644 index 0000000..4d10461 --- /dev/null +++ b/zsh/.zprofile.symlink @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh + +eval "$(/usr/local/bin/brew shellenv)" diff --git a/zsh/.zshrc.symlink b/zsh/.zshrc.symlink index 7b6d721..63b3382 100644 --- a/zsh/.zshrc.symlink +++ b/zsh/.zshrc.symlink @@ -13,7 +13,7 @@ export DOT="$HOME/dotfiles" export HACK="$HOME/hackin" # Theme. -ZSH_THEME="typewritten" +ZSH_THEME="" # Use hyphen-insensitive completion. # Case-sensitive completion must be off. _ and - will be interchangeable. @@ -78,6 +78,9 @@ done unset config_files +# Starship +eval "$(starship init zsh)" + # Herd injected PHP binary. export PATH="/Users/marley/Library/Application Support/Herd/bin/":$PATH diff --git a/zsh/fpath.zsh b/zsh/fpath.zsh index 488033b..aeb8514 100644 --- a/zsh/fpath.zsh +++ b/zsh/fpath.zsh @@ -11,6 +11,6 @@ fi # Add each topic folder to fpath so that they can # add functions and completion scripts. -for topic_folder ($ZSH/*) if [ -d $topic_folder ]; then +for topic_folder ($DOT/*) if [ -d $topic_folder ]; then fpath=($topic_folder $fpath) fi diff --git a/zsh/install.sh b/zsh/install.sh new file mode 100755 index 0000000..016a0a9 --- /dev/null +++ b/zsh/install.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# vim:set ft=bash: + +source $DOT/homebrew/install_once.sh + +install_once starship