Skip to content

Commit

Permalink
📞 git-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Mar 22, 2024
1 parent 1ed57e7 commit 49e8207
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shell/.mac_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ alias xpython3.12="$(xbrew --prefix [email protected])/bin/python3.12"
alias xpython3.11="$(xbrew --prefix [email protected])/bin/python3.11"
alias xpython3.10="$(xbrew --prefix [email protected])/bin/python3.10"
alias xpython3.9="$(xbrew --prefix [email protected])/bin/python3.9"
alias xpython3.8="$(xbrew --prefix [email protected])/bin/python3.8"
alias xpython3.8="$(xbrew --prefix [email protected])/bin/python3.8"
4 changes: 4 additions & 0 deletions shell/.shell_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 49e8207

Please sign in to comment.