Install starship

This commit is contained in:
Marley 2024-01-22 19:23:25 -08:00
parent 24270851a3
commit b7e6d54f1c
5 changed files with 25 additions and 2 deletions

11
homebrew/install_once.sh Normal file
View file

@ -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
}

3
zsh/.zprofile.symlink Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env zsh
eval "$(/usr/local/bin/brew shellenv)"

View file

@ -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

View file

@ -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

6
zsh/install.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# vim:set ft=bash:
source $DOT/homebrew/install_once.sh
install_once starship