From 309fa3bdf18bd52794abc637043956e5f225a04a Mon Sep 17 00:00:00 2001
From: Derek Stavis <dekestavis@gmail.com>
Date: Sun, 10 Jan 2016 12:18:30 -0200
Subject: [PATCH] Remove PATH save/restore code

Fixes #186 by removing the PATH save/restore code from init.fish.

There isn't a single occurence where Oh My Fish code changes the
value of PATH variable.

Plugin code which changes the PATH variable should be aware of
the side-effects and manage PATHs correctly, avoiding duplication.
---
 init.fish | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/init.fish b/init.fish
index c0768d7..82cfc65 100644
--- a/init.fish
+++ b/init.fish
@@ -14,20 +14,11 @@
 #   + Source $OMF_CONFIG/init.fish
 #
 # ENV
-#   OSTYPE        Operating system.
-#   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
 
-# 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 ORIGINAL_PATH $PATH
-end
-
 # Set OMF_CONFIG if not set.
 if not set -q OMF_CONFIG
   set -q XDG_CONFIG_HOME; or set -l XDG_CONFIG_HOME "$HOME/.config"
-- 
GitLab