From a2acf44f910fd74864c91cba7f36f118a6197181 Mon Sep 17 00:00:00 2001 From: Adrian Abeyta Date: Thu, 29 Oct 2026 10:10:53 -0600 Subject: [PATCH] migrate git completion setup to alias file --- bash/.aliases | 4 ++++ bash/.bash_profile | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bash/.aliases b/bash/.aliases index 9ad8713..5c185df 100644 --- a/bash/.aliases +++ b/bash/.aliases @@ -34,6 +34,10 @@ alias chgrp='chgrp --preserve-root' ## apps alias g='git' +# enable tab completion for 'g' by marking as alias for 'git' +if type _git &> /dev/null; then + complete -o default -o nospace -F _git g; +fi alias bat='batcat' alias bathelp='bat --plain --language=help' diff --git a/bash/.bash_profile b/bash/.bash_profile index 81fe6f0..2ed3eb6 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -28,8 +28,3 @@ shopt -s nocaseglob; # case-insensitive globbing shopt -s histappend; # append to bash history file shopt -s cdspell; # autocorrect typos in path names when cd'ing shopt -s checkwinsize # update col/line values on each command - -# enable tab completion for 'g' by marking as alias for 'git' -if type _git &> /dev/null; then - complete -o default -o nospace -F _git g; -fi