From 3104e958f107afd298b464b1eff33014174caf4f Mon Sep 17 00:00:00 2001 From: John Gee Date: Sat, 16 Nov 2019 16:24:44 +1300 Subject: [PATCH] List the old and new locations when change location, one-off situation, give lots of detail --- bin/n | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/n b/bin/n index 7c0348b..5f5b694 100755 --- a/bin/n +++ b/bin/n @@ -571,6 +571,8 @@ activate() { # Extra tips for changed location. if [[ -e "${active_node}" && -e "${original_node}" && "${active_node}" != "${original_node}" ]]; then printf '\nNote: the node command changed location and the old location may be remembered in your current shell.\n' + log old "${original_node}" + log new "${active_node}" printf 'To reset the command location hash either start a new shell, or execute PATH="$PATH"\n' fi fi