Commit 2ac89b5a authored by Bruno Pinto's avatar Bruno Pinto

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.
parent 8aa6bf7e
...@@ -13,16 +13,17 @@ ...@@ -13,16 +13,17 @@
# #
# ENV # ENV
# OSTYPE Operating system. # 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_PATH ~/.local/share/omf by default.
# OMF_IGNORE List of packages to ignore. # OMF_IGNORE List of packages to ignore.
# OMF_CONFIG ~/.config/omf by default. # OMF_CONFIG ~/.config/omf by default.
# OMF_VERSION Oh My Fish! version # OMF_VERSION Oh My Fish! version
if set -q RESET_PATH # Save PATH before oh my fish for reseting the PATH when we reload OMF.
set PATH $RESET_PATH if set -q ORIGINAL_PATH
set PATH $ORIGINAL_PATH
else else
set -gx RESET_PATH $PATH set -gx ORIGINAL_PATH $PATH
end end
set -q OSTYPE; or set -g OSTYPE (uname) set -q OSTYPE; or set -g OSTYPE (uname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment