From 8bc67e4f75e23e62667918a7629ad531b47923b5 Mon Sep 17 00:00:00 2001
From: Óscar Nájera <hi@oscarnajera.com>
Date: Thu, 5 May 2022 13:39:10 +0200
Subject: Install rust paths

---
 home-dots/dot-bash_profile | 6 ++++++
 home-dots/dot-bashrc       | 5 ++---
 home-dots/dot-profile      | 1 +
 3 files changed, 9 insertions(+), 3 deletions(-)
 create mode 100644 home-dots/dot-bash_profile
 create mode 100644 home-dots/dot-profile

(limited to 'home-dots')

diff --git a/home-dots/dot-bash_profile b/home-dots/dot-bash_profile
new file mode 100644
index 0000000..aeac56a
--- /dev/null
+++ b/home-dots/dot-bash_profile
@@ -0,0 +1,6 @@
+#
+# ~/.bash_profile
+#
+
+[[ -f ~/.bashrc ]] && . ~/.bashrc
+. "$HOME/.cargo/env"
diff --git a/home-dots/dot-bashrc b/home-dots/dot-bashrc
index 14c0fff..963fbec 100644
--- a/home-dots/dot-bashrc
+++ b/home-dots/dot-bashrc
@@ -67,9 +67,8 @@ alias lar='ls -lahrt'
 alias emacs='TERM=xterm-direct emacs'
 alias mykeys='setxkbmap -I$HOME/.config/xkb/ oscar -option caps:escape -print | xkbcomp -I$HOME/.config/xkb/ - $DISPLAY'
 
-# export PATH="$HOME/.cargo/bin:$PATH"
-if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then . "$HOME/.nix-profile/etc/profile.d/nix.sh"; fi # added by Nix installer
-[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env"                                                    # ghcup-env
+[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env
+source "$HOME/.cargo/env"
 GUIX_PROFILE="$HOME/.guix-profile" && [ -e "$GUIX_PROFILE" ] && . "$GUIX_PROFILE/etc/profile" && export GUIX_LOCPATH=$GUIX_PROFILE/lib/locale
 GUIX_PROFILE="$HOME/.config/guix/current" && [ -e "$GUIX_PROFILE" ] && . "$GUIX_PROFILE/etc/profile"
 # export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
diff --git a/home-dots/dot-profile b/home-dots/dot-profile
new file mode 100644
index 0000000..c2f3182
--- /dev/null
+++ b/home-dots/dot-profile
@@ -0,0 +1 @@
+. "$HOME/.cargo/env"
-- 
cgit v1.2.3