aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/.profile3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/.profile b/system/.profile
index 429ac48..464c47b 100644
--- a/system/.profile
+++ b/system/.profile
@@ -17,7 +17,10 @@ export PATH="$HOME/bin:$PATH"
export PATH="$HOME/bin.local:$PATH"
[ -f "/home/camil/.ghcup/env" ] && . "/home/camil/.ghcup/env"
+
[ -f /home/camil/.nix-profile/etc/profile.d/nix.sh ] && . /home/camil/.nix-profile/etc/profile.d/nix.sh
+# with TERM=rxvt-unicode-256color, backspace and other keys don't work in nix shells
+[ "$IN_NIX_SHELL" = "" -a "$TERM" = "rxvt-unicode-256color" ] || TERM=rxvt-256color
export MANPATH="/usr/local/git/man:$MANPATH"
export MANPATH="/usr/local/mysql/man:$MANPATH"