in reply to mvi -- mv+vi (+ln+rm+cp+mkdir)

It's an entire day since I read this node, and I've only just twigged that I could do with the same thing for the PATH variable, on Windoss at least.

Not that I have the time to think it through properly though, let alone do the work. Grr.

Now, if you'll excuse me, I have a grindstone to return to.

--
use JAPH;
print JAPH::asString();

Replies are listed 'Best First'.
Re^2: mvi -- mv+vi (+ln+rm+cp+mkdir) (vienv+cleanpath)
by tye (Sage) on Aug 03, 2010 at 15:22 UTC

    On Win32 I have vienv - Edit local environment variables on Win32 for temporary changes to the environment and CleanPath for permanent changes to %PATH%. It would be very cool to have one directory (from %PATH%) per line in your editor and adjust things there. It'd also be cool if vienv could make permanent changes. Why not combine the two. You could throw up the editor on something like:

    =System ALLUSERSPROFILE=C:\Documents and Settings\All Users ... PATH; ;C:\WINDOWS\system32 ;C:\WINDOWS ;C:\WINDOWS\System32\Wbem ;C:\strawberry\c\bin ;C:\strawberry\perl\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1 ... WINDIR=C:\WINDOWS =User TEMP=C:\DOCUME~1\tye\LOCALS~1\Temp TMP=C:\DOCUME~1\tye\LOCALS~1\Temp VISUAL=vim

    - tye