From 9e45ad6c8b4d30c9f10b7619bda08bbb688d00e1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 28 Oct 2024 12:41:40 +0100 Subject: [PATCH] Add tree alias --- functions/tree.fish | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 functions/tree.fish diff --git a/functions/tree.fish b/functions/tree.fish new file mode 100644 index 0000000..9053f79 --- /dev/null +++ b/functions/tree.fish @@ -0,0 +1,6 @@ +which tree --skip-functions >/dev/null 2>/dev/null +if [ $status -eq 0 ] + function tree --wraps="tree -C" + command tree -C $argv + end +end