summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc7
1 files changed, 5 insertions, 2 deletions
diff --git a/bashrc b/bashrc
index 55d0d7f..f4e26f8 100644
--- a/bashrc
+++ b/bashrc
@@ -199,9 +199,12 @@ gotcmd() {
command -v "$1" > /dev/null
}
-if gotcmd zoxide && gotcmd starship; then
- export PROMPT_COMMAND=prompt_set_window_title
+if gotcmd zoxide; then
eval "$(zoxide init bash)"
+fi
+
+if gotcmd starship; then
+ export PROMPT_COMMAND=prompt_set_window_title
eval "$(starship init bash)"
else
export PROMPT_COMMAND=prompt_command