From 5c48d5fab74bde4cadd4392f25f86b64c41cab1c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 15 Oct 2023 15:49:13 +0300 Subject: bashrc: don't require zoxide to set up starship Signed-off-by: Lars Wirzenius Sponsored-by: author --- bashrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bashrc') 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 -- cgit v1.2.1