From 2ac89b5a1cf11aace24eb5bfc1a1d11c50af3b7b Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Sat, 5 Sep 2015 16:56:33 +0100 Subject: [PATCH] Rename RESET_PATH to ORIGINAL_PATH This variable records the value of $PATH environment variable before oh-my-fish is sourced. When we "reload" the framework, we reset $PATH with this recorded value so that we boot from a clean state. --- init.fish | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/init.fish b/init.fish index 7e8ee5e..924f73d 100644 --- a/init.fish +++ b/init.fish @@ -13,16 +13,17 @@ # # ENV # OSTYPE Operating system. -# RESET_PATH Original $PATH preseved across Oh My Fish reloads. +# ORIGINAL_PATH Original $PATH preseved across Oh My Fish reloads. # OMF_PATH ~/.local/share/omf by default. # OMF_IGNORE List of packages to ignore. # OMF_CONFIG ~/.config/omf by default. # OMF_VERSION Oh My Fish! version -if set -q RESET_PATH - set PATH $RESET_PATH +# Save PATH before oh my fish for reseting the PATH when we reload OMF. +if set -q ORIGINAL_PATH + set PATH $ORIGINAL_PATH else - set -gx RESET_PATH $PATH + set -gx ORIGINAL_PATH $PATH end set -q OSTYPE; or set -g OSTYPE (uname)