diff options
| author | Blake Romero <blake@developercraft.com> | 2026-03-31 12:29:12 +0100 |
|---|---|---|
| committer | Blake Romero <blake@developercraft.com> | 2026-03-31 12:29:12 +0100 |
| commit | e439ea77974241bb50b8727c86907b4f3b311828 (patch) | |
| tree | 6670db8f7aa6a72480e19ebb0b1bdfd014b361c1 | |
| parent | 18f36068570bf0d3f804abf89631bc9ffce3d5d6 (diff) | |
Refactor tree alias with if statement
| -rw-r--r-- | bash_aliases | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
