From 81cd2c879125345fca6bfdc63aa0077d57267d88 Mon Sep 17 00:00:00 2001 From: Heavy Date: Sun, 23 Jan 2022 14:45:59 +0100 Subject: [PATCH] Added additional file to initialize Rust applications. --- dot_bashrc.d/executable_13.rust | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 dot_bashrc.d/executable_13.rust 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 +}