From 00007bb8349dae0766a8529acfa1228728c83a11 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 28 Jan 2025 19:10:16 +0000 Subject: Changed git completion to show all valid options --- .kshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.kshrc b/.kshrc index b226f4f..4af2c77 100644 --- a/.kshrc +++ b/.kshrc @@ -90,7 +90,10 @@ _SSH_HOSTS=$(awk '/^host/{ print $2 }' ~/.ssh/config) set -A complete_ssh -- $_SSH_HOSTS set -A complete_pkg -- autoremove clean install search update upgrade version -set -A complete_git -- blame diff log main origin commit add pull push rebase status trunk +# Git completion +set -A complete_git -- \ + $(git --list-cmds=main) \ + $(git config --get-regexp ^alias\. | awk -F '[\. ]' '{ print $2 }') set -A complete_config -- add commit diff push status set -A complete_service -- onereload onerestart onestop restart start status stop set -A complete_zfs -- clone create diff get jail list mount promote receive set send share snapshot upgrade -- cgit v1.2.3