install starship in zsh config dir
This commit is contained in:
parent
9a0b60480b
commit
4ac2861c54
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
zshrc
2
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue