From e439ea77974241bb50b8727c86907b4f3b311828 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Tue, 31 Mar 2026 12:29:12 +0100 Subject: Refactor tree alias with if statement --- bash_aliases | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bash_aliases b/bash_aliases index fd17c42..941ecfc 100644 --- a/bash_aliases +++ b/bash_aliases @@ -12,7 +12,10 @@ exists() { alias ls="ls -hvF --group-directories-first --color=auto" alias rm="rm -iv" -exists tree && alias tree="tree --dirsfirst" +# Tree +if exists tree; then + alias tree="tree --dirsfirst" +fi # Eza if exists eza; then -- cgit