From b758f5d2eeb1dfd499ac57a3bf5625ccd3e27fe0 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 2 May 2022 23:45:36 +0200 Subject: [PATCH] zshenv: only edit default PATH if $IN_NIX_SHELL... ...is set. otherwise the default is satisfying. --- .zshenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshenv b/.zshenv index aed55fe..b4468d8 100644 --- a/.zshenv +++ b/.zshenv @@ -12,7 +12,7 @@ export AndroidNdkPath=$ANDROID_NDK_PATH export CCACHE_DISABLE="true" -export PATH="/sbin:/bin" +[ -z "$IN_NIX_SHELL" ] && export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" add_to_path() {