aboutsummaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
Diffstat (limited to 'profile')
-rw-r--r--profile9
1 files changed, 9 insertions, 0 deletions
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