From bc76b3310c0e82ed11a926cd8f784caa80a6cca5 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Thu, 12 Sep 2024 06:11:31 +0100 Subject: [PATCH] enable bash completion for the g alias --- hosts/sparrow.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/sparrow.json b/hosts/sparrow.json index 579bad1..7780ad1 100644 --- a/hosts/sparrow.json +++ b/hosts/sparrow.json @@ -14,6 +14,14 @@ { "command": "eval \"$(SHELL=/bin/sh lesspipe.sh)\"", "description": "Make less more friendly for non-text input files" + }, + { + "command": "source /run/current-system/sw/share/bash-completion/completions/git", + "description": "Enable bash completion for g" + }, + { + "command": "complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g", + "description": "Enable bash completion for the g alias" } ], "sessionPaths": [