Thanks for your help. I've tried restarting, moving .config/fish to .config/fish-backup, still no good. It keeps reverting to the old PATH. I'm really lost.
I was able to set and export other universal array variables just fine. It's just PATH that seems to be a special case. ro...@iron ~> set -Ux PATH /opt/subversion/bin /opt/postgresql/bin /bin /usr/bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin /Users/ronny/bin ro...@iron ~> echo $PATH /usr/bin /bin /usr/sbin /sbin /usr/local/Cellar/fish/1.23.1/bin /usr/X11R6/bin /usr/local/bin I like fish, and really want to keep using it, but this inability to set PATH properly is a major stopper for me (and I assume for many people). It doesn't seem to make sense to be unnoticed, so I was thinking it must be something I didn't do right or something specific to my environment. Ronny On Wed, May 5, 2010 at 6:05 PM, [email protected] <[email protected]> wrote: > I think your config files must contain something that's causing the problem, > try deleting any lines that set a path, I think there are default settings > in another file which your local config settings override. You could even > try moving .config/fish to .config/fish-backup then try again. > > You may have to restart. > > > > Ronny Haryanto wrote: > > Hi, > > Thanks for your response. > > I didn't know that you can have variables with the same name in > different context. I checked, and it turned out that PATH exists in > both global and universal scopes. So I deleted the global one with set > -ge PATH, and then did a set -x PATH ... again. Now when I do echo > $PATH, it's showing the correct PATH, _but_ it's still not preserved > (or not honoured) across sessions. > > ro...@iron ~> grep " PATH:" ~/.config/fish/fishd.iron > SET_EXPORT > PATH:/opt/subversion/bin\x1e/opt/postgresql/bin\x1e/bin\x1e/usr/bin\x1e/usr/sbin\x1e/sbin\x1e/usr/local/sbin\x1e/usr/local/bin\x1e/Users/ronny/bin > > I've tried logging out and logging back in. Still no luck. This is a > bit frustrating. > > Ronny > > On Wed, May 5, 2010 at 5:03 PM, [email protected] <[email protected]> > wrote: > > > Hi Ronny > > There are 3 different variable contexts, local, global and universal. When > setting a variable that already exists you don't need to specify the context > as it will use the context for the existing variable. Although what you're > doing seems correct I suspect you're creating an additional PATH variable in > a different context. I think this should do it > > set -x PATH /opt/subversion/bin /opt/postgresql/bin /bin /usr/bin /usr/sbin > /sbin /usr/local/sbin /usr/local/bin /Users/ronny/bin > > or even > > set PATH /opt/subversion/bin ... $PATH (... are additional directories you > wish to add) > > Ronny Haryanto wrote: > > I hate to reply to my own emails, but I forgot to mention that fishd > seemed to have saved it, though: > > ro...@iron ~> grep " PATH:" ~/.config/fish/fishd.iron > SET_EXPORT > PATH:/opt/subversion/bin\x1e/opt/postgresql/bin\x1e/bin\x1e/usr/bin\x1e/usr/sbin\x1e/sbin\x1e/usr/local/Cellar/fish/1.23.1/bin\x1e/usr/local/sbin\x1e/usr/local/bin\x1e/Users/ronny/bin > > I think it's either fish somehow is not honouring that, or something > else is overwriting it. > > Cheers, > Ronny > > On Wed, May 5, 2010 at 12:41 PM, Ronny Haryanto <[email protected]> wrote: > > > Hi guys, > > I couldn't get PATH to set properly. I'm running Mac OS X 10.6.3. > > ro...@iron ~> fish --version > fish, version 1.23.1 > ro...@iron ~> echo $PATH > /usr/bin /bin /usr/sbin /sbin /usr/local/Cellar/fish/1.23.1/bin > /usr/X11R6/bin /usr/local/bin > ro...@iron ~> set -Ux PATH /opt/subversion/bin /opt/postgresql/bin > /bin /usr/bin /usr/sbin /sbin /usr/local/sbin /usr/local/bin > /Users/ronny/bin > ro...@iron ~> echo $PATH > /usr/bin /bin /usr/sbin /sbin /usr/local/Cellar/fish/1.23.1/bin > /usr/X11R6/bin /usr/local/bin > > The shell above is a login shell, ran from iTerm. I tried it with a > non-login shell (by running 'fish'), still no luck. > > I was able, however, to set it globally instead of universally: > > ro...@iron ~> set -gx PATH /opt/subversion/bin /opt/postgresql/bin > /bin /usr/bin /usr/sbin /sbin /usr/local/Cellar/fish/1.23.1/bin > /usr/local/sbin /usr/local/bin /Users/ronny/bin > ro...@iron ~> echo $PATH > /opt/subversion/bin /opt/postgresql/bin /bin /usr/bin /usr/sbin /sbin > /usr/local/Cellar/fish/1.23.1/bin /usr/local/sbin /usr/local/bin > /Users/ronny/bin > > But, of course, it wouldn't be saved across fish sessions. The next > time I open iTerm or a new tab, the PATH setting's back to the > original one. > > What am I missing here? > > Thanks in advance for any pointers. > > Ronny > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Fish-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fish-users > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Fish-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fish-users > > ------------------------------------------------------------------------------ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
