From 4ac2861c54272adaa290c87572b7bb54dc3e4a17 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 3 Sep 2020 17:22:56 +0100 Subject: [PATCH] install starship in zsh config dir --- install.sh | 3 ++- zshrc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9bad348..b3ec0dd 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,6 @@ #!/bin/sh git clone https://github.com/tarjoilija/zgen.git "$HOME/.config/zsh/zgen" -curl -fsSL https://starship.rs/install.sh | bash if [ -e "$HOME/.config/starship" ] ; then mv "$HOME/.config/starship" "$HOME/.config/starship-original-$(date +%s)" @@ -12,3 +11,5 @@ if [ -e "$HOME/.zshrc" ] ; then mv "$HOME/.zshrc" "$HOME/.zshrc-original-$(date +%s)" fi ln -s "$HOME/.config/zsh/zshrc" "$HOME/.zshrc" + +curl -fsSL https://starship.rs/install.sh --yes --bin-dir "$HOME/.config/zsh/starship" | bash diff --git a/zshrc b/zshrc index 104e34b..ffb78f7 100644 --- a/zshrc +++ b/zshrc @@ -107,5 +107,5 @@ alias todone='task_done' # https://til.hashrocket.com/posts/7evpdebn7g-remove-duplicates-in-zsh-path typeset -aU path -eval "$(starship init zsh)" +eval "$(~/.config/zsh/starship/starship init zsh)" export STARSHIP_CONFIG=~/.config/starship/starship.toml