install starship in zsh config dir
This commit is contained in:
parent
9a0b60480b
commit
4ac2861c54
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
git clone https://github.com/tarjoilija/zgen.git "$HOME/.config/zsh/zgen"
|
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
|
if [ -e "$HOME/.config/starship" ] ; then
|
||||||
mv "$HOME/.config/starship" "$HOME/.config/starship-original-$(date +%s)"
|
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)"
|
mv "$HOME/.zshrc" "$HOME/.zshrc-original-$(date +%s)"
|
||||||
fi
|
fi
|
||||||
ln -s "$HOME/.config/zsh/zshrc" "$HOME/.zshrc"
|
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
|
# https://til.hashrocket.com/posts/7evpdebn7g-remove-duplicates-in-zsh-path
|
||||||
typeset -aU path
|
typeset -aU path
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(~/.config/zsh/starship/starship init zsh)"
|
||||||
export STARSHIP_CONFIG=~/.config/starship/starship.toml
|
export STARSHIP_CONFIG=~/.config/starship/starship.toml
|
||||||
|
|
Loading…
Reference in New Issue