aboutsummaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
Diffstat (limited to 'profile')
-rw-r--r--profile14
1 files changed, 5 insertions, 9 deletions
diff --git a/profile b/profile
index 99401e1..13d68a1 100644
--- a/profile
+++ b/profile
@@ -19,15 +19,11 @@ 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
+# Guix
+GUIX_PROFILE="$HOME/.config/guix/current"
+! [[ -d "$GUIX_PROFILE" ]] || source "$GUIX_PROFILE/etc/profile"
+GUIX_PROFILE="$HOME/.guix-profile"
+! [[ -d "$GUIX_PROFILE" ]] || source "$GUIX_PROFILE/etc/profile"
# Rest of the profile run only if login is from linux console
[[ "$(tty)" != /dev/tty* ]] && return