mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Starship support.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user