Starship support.

This commit is contained in:
David Tomaschik
2022-05-08 16:01:23 -07:00
parent f6e6c42b26
commit 3c8d8ca5e1
2 changed files with 14 additions and 0 deletions

View File

@@ -433,6 +433,14 @@ EOF
kubeconform)
go install github.com/yannh/kubeconform/cmd/kubeconform@latest
;;
starship)
mkdir -p ${DESTDIR}
download \
"https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-musl.tar.gz" \
/tmp/starship.tar.gz
tar -C ${DESTDIR} -zxf /tmp/starship.tar.gz starship
add_bin_symlink starship
;;
*)
echo "Unknown tool: ${TOOL}" >/dev/stderr
list_tools

View File

@@ -1,3 +1,9 @@
function dumpenv {
tr '\0' '\n' < /proc/${1}/environ
}
if test -x "${HOME}/tools/starship/starship" ; then
function starship_prompt {
eval $($HOME/tools/starship/starship init zsh)
}
fi