From: Nicolas Boisselier Date: Sun, 3 Nov 2024 07:26:08 +0000 (+0100) Subject: etc/profile.d/git.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=af3e90e8921ee748b5a02c313ecec6e4311c035d;p=nb.git etc/profile.d/git.sh --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 3cc94e2a..a5179767 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -6,9 +6,13 @@ 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" +# NB 03.11.24 alias git_ls_files="git ls-files --full-name" # NB 13.11.23 alias git_root="git rev-parse --show-toplevel" +git_ls_files() { + git ls-files --full-name #| awk '{print "\""$0"\""}' +} + git_root() { git rev-parse --show-toplevel }