From 49e8207330faaa117e26674804657617debbfc19 Mon Sep 17 00:00:00 2001 From: juftin Date: Fri, 22 Mar 2024 14:25:58 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9E=20git-tree?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/.mac_aliases | 2 +- shell/.shell_aliases | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/shell/.mac_aliases b/shell/.mac_aliases index 51f7284..d5d9fad 100644 --- a/shell/.mac_aliases +++ b/shell/.mac_aliases @@ -15,4 +15,4 @@ alias xpython3.12="$(xbrew --prefix python@3.12)/bin/python3.12" alias xpython3.11="$(xbrew --prefix python@3.11)/bin/python3.11" alias xpython3.10="$(xbrew --prefix python@3.10)/bin/python3.10" alias xpython3.9="$(xbrew --prefix python@3.9)/bin/python3.9" -alias xpython3.8="$(xbrew --prefix python@3.8)/bin/python3.8" \ No newline at end of file +alias xpython3.8="$(xbrew --prefix python@3.8)/bin/python3.8" diff --git a/shell/.shell_aliases b/shell/.shell_aliases index 3b1d2f5..dddf422 100644 --- a/shell/.shell_aliases +++ b/shell/.shell_aliases @@ -121,6 +121,10 @@ function git-remove-deleted() { done } +function git-tree() { + tree -C -I $((cat .gitignore 2> /dev/null || cat $(git rev-parse --show-toplevel 2> /dev/null)/.gitignore 2> /dev/null || echo "node_modules") | egrep -v "^#.*$|^[[:space:]]*$" | tr "\\n" "|" | rev | cut -c 2- | rev) +} + # verbose `git status` alias alias status="git status --verbose --ahead-behind --branch --find-renames"