From: Nicolas Boisselier Date: Mon, 13 Nov 2023 08:55:24 +0000 (+0100) Subject: etc/profile.d/git.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=c8b969e19a92967150d2d8d65011920abad209e1;p=nb.git etc/profile.d/git.sh --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 87001f9d..8cbe5206 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -7,7 +7,11 @@ which git > /dev/null || return 0 alias git_grep="git grep --color=auto" alias git_ls_tree="git ls-tree --full-tree -r HEAD" alias git_ls_files="git ls-files --full-name" -alias git_root="git rev-parse --show-toplevel" +# NB 13.11.23 alias git_root="git rev-parse --show-toplevel" + +git_root() { + git rev-parse --show-toplevel +} gitf() { case "$@" in