From 46fdaf14f540b8c0c0770f65445a85001bc848c0 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Mon, 26 Aug 2019 15:34:37 -0400 Subject: [PATCH] If statement for starship --- zsh/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 8193736..e99f12f 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -52,7 +52,11 @@ if [[ ! ($(uname) -eq "Darwin") ]]; then antigen bundle matthieusb/zsh-sdkman fi -antigen theme denysdovhan/spaceship-prompt +if [[ -e ~/.cargo/bin/starship ]]; then + eval "$(~/.cargo/bin/starship init zsh)" +else + antigen theme denysdovhan/spaceship-prompt +fi # antigen theme romkatv/powerlevel10k powerlevel10k antigen apply