✨ Install starship
This commit is contained in:
parent
24270851a3
commit
b7e6d54f1c
5 changed files with 25 additions and 2 deletions
11
homebrew/install_once.sh
Normal file
11
homebrew/install_once.sh
Normal 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
3
zsh/.zprofile.symlink
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
eval "$(/usr/local/bin/brew shellenv)"
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
6
zsh/install.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# vim:set ft=bash:
|
||||
|
||||
source $DOT/homebrew/install_once.sh
|
||||
|
||||
install_once starship
|
Loading…
Reference in a new issue