aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-04-30 07:48:03 +0200
committerKarel Kočí <cynerd@email.cz>2024-04-30 07:48:03 +0200
commit44580da0ae35aec6ebc20210abb5b42105042eed (patch)
tree07f1b936a8753e1b2e15f296299745f4a5ead155
parent832a5732513a69501ab6067a8aca642b939748b3 (diff)
downloadmyconfigs-44580da0ae35aec6ebc20210abb5b42105042eed.tar.gz
myconfigs-44580da0ae35aec6ebc20210abb5b42105042eed.tar.bz2
myconfigs-44580da0ae35aec6ebc20210abb5b42105042eed.zip
profile: load Glab completion
m---------private0
-rw-r--r--profile9
2 files changed, 9 insertions, 0 deletions
diff --git a/private b/private
-Subproject b0c7e860ee85a97ff0939f16b34574b753a6bb8
+Subproject 169cbe1eac2ef2c1166b604345f88d42a7b1fa8
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