From 76b2be46cf5fe25c0905bb30b6ff21221be0f35d Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 28 Jun 2021 17:27:12 +0200 Subject: Fix nix-shell urxvt issue --- system/.profile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system/.profile') 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" -- cgit v1.2.3