From 44580da0ae35aec6ebc20210abb5b42105042eed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 30 Apr 2024 07:48:03 +0200 Subject: profile: load Glab completion --- private | 2 +- profile | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/private b/private index b0c7e86..169cbe1 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit b0c7e860ee85a97ff0939f16b34574b753a6bb8e +Subproject commit 169cbe1eac2ef2c1166b604345f88d42a7b1fa8c diff --git a/profile b/profile index 0b185a7..99401e1 100644 --- a/profile +++ b/profile @@ -19,6 +19,15 @@ for profile in "$HOME"/.nix-profile/etc/profile.d/*; do source "$profile" done +# GLab +if command -v glab >/dev/null; then + if [[ -n "${BASH_VERSINFO:-}" ]]; then + source <(glab completion -s bash) + elif [[ -n "${ZSH_VERSION:-}" ]]; then + source <(glab completion -s zsh) + compdef _glab glab + fi +fi # Rest of the profile run only if login is from linux console [[ "$(tty)" != /dev/tty* ]] && return -- cgit v1.2.3