diff options
author | Justine Smithies <justine@smithies.me.uk> | 2025-01-28 19:10:16 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2025-01-28 19:10:16 +0000 |
commit | 00007bb8349dae0766a8529acfa1228728c83a11 (patch) | |
tree | d0ae257dc8789f43f4410c031004682845e0b318 | |
parent | 14489d9c78637ac4e76975c9f2d55d43c8c53409 (diff) |
Changed git completion to show all valid options
-rw-r--r-- | .kshrc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |