commit 5394fd08e299db60b54dc88104694665fb1b3166 from: Benjamin Stürz date: Fri Jul 19 14:08:31 2024 UTC mykshrc: add completion for got(1) commit - d82a0e4564b5771ad6189e0e92e12b4c46d8bd12 commit + 5394fd08e299db60b54dc88104694665fb1b3166 blob - d9788c6018102fac156f5b9159c0fc88408de273 blob + 18972a1ab982640831a75dbc7f1d00c6768040c2 --- etc/common/mykshrc +++ etc/common/mykshrc @@ -62,6 +62,9 @@ if [ "$(uname)" = "OpenBSD" ]; then set -A complete_vmctl -- $(vmctl status | awk '!/NAME/{print $NF}') fi set -A complete_git_1 -- clone init add mv restore rm bisect diff show status branch commit merge rebase reset tag fetch pull push +if command -v got > /dev/null; then + set -A complete_got_1 -- $(got -h 2>&1 | sed -n 's/commands://p') +fi COMMANDS=$(command ls -1 -- $(echo "$PATH" | tr ':' '\n') | sort | uniq) set -A complete_doas_1 -- ${COMMANDS} set -A complete_which -- ${COMMANDS}