migrate git completion setup to alias file
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user