From c8b969e19a92967150d2d8d65011920abad209e1 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 13 Nov 2023 09:55:24 +0100 Subject: [PATCH] etc/profile.d/git.sh --- etc/profile.d/git.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.47.3