diff --git a/dot_bashrc.d/executable_13.rust b/dot_bashrc.d/executable_13.rust new file mode 100644 index 0000000..921179c --- /dev/null +++ b/dot_bashrc.d/executable_13.rust @@ -0,0 +1,13 @@ +# Initialization of some Rust applications +# if available + +# Starship +# https://starship.rs +# Should not be the primary prompt, but be activated if 'starinit' is called +function starinit() { + if starship -V > /dev/null 2>&1; then + eval "$(starship init bash)" + else + echo starship is not available + fi +}