From 27567111b57a275a5674db0e9c200bf9468f9f56 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Sat, 21 Dec 2019 19:15:30 +0000 Subject: [PATCH] Pathing for starship --- zsh/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 09275c5..599fc7b 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -47,8 +47,8 @@ if [[ -d ~/.cargo/bin ]]; then export PATH="$HOME/.cargo/bin:$PATH" fi -if [[ -e ~/.cargo/bin/starship ]]; then - eval "$(~/.cargo/bin/starship init zsh)" +if [[ $(whence -p starship 2> /dev/null) ]]; then + eval "$(starship init zsh)" else antibody bundle denysdovhan/spaceship-prompt fi