summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-10-15 15:49:13 +0300
committerLars Wirzenius <liw@liw.fi>2023-10-15 15:49:13 +0300
commit5c48d5fab74bde4cadd4392f25f86b64c41cab1c (patch)
treef1fdcbe4bedccd76a21fd1a86e63ffa6302655d2 /bashrc
parent1fc8fc86989eee51c2bc5413cede1754d61f2908 (diff)
downloadliw-dot-files-5c48d5fab74bde4cadd4392f25f86b64c41cab1c.tar.gz
bashrc: don't require zoxide to set up starship
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
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