From 4e463eb15ce979ae09dea99c8af69d9d003104a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 3 Oct 2024 14:56:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(dev=20script):=20check=20if?= =?UTF-8?q?=20zoxide=20is=20installed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/bin/dev | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/dev b/.local/bin/dev index 770d1023..5fe445e6 100755 --- a/.local/bin/dev +++ b/.local/bin/dev @@ -73,7 +73,9 @@ handle_editor() { } zoxide_score() { - zoxide add "$selected_dir" + if command -v zoxide &>/dev/null; then + zoxide add "$selected_dir" + fi } selected_dir=$($projects_command | $fzf_command --prompt='Select a directory: ' \