Skip to content

Commit 49e8207

Browse files
committed
📞 git-tree
1 parent 1ed57e7 commit 49e8207

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

shell/.mac_aliases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ alias xpython3.12="$(xbrew --prefix python@3.12)/bin/python3.12"
1515
alias xpython3.11="$(xbrew --prefix python@3.11)/bin/python3.11"
1616
alias xpython3.10="$(xbrew --prefix python@3.10)/bin/python3.10"
1717
alias xpython3.9="$(xbrew --prefix python@3.9)/bin/python3.9"
18-
alias xpython3.8="$(xbrew --prefix python@3.8)/bin/python3.8"
18+
alias xpython3.8="$(xbrew --prefix python@3.8)/bin/python3.8"

shell/.shell_aliases

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ function git-remove-deleted() {
121121
done
122122
}
123123

124+
function git-tree() {
125+
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)
126+
}
127+
124128
# verbose `git status` alias
125129
alias status="git status --verbose --ahead-behind --branch --find-renames"
126130

0 commit comments

Comments
 (0)