Hot answers tagged

2

I have knocked up a batch file env.cmd which works more or less like the Linux env command:- echo off setlocal for %%f in (%*) do ( echo %%f|find "=" >nul: if errorlevel 1 goto DoCmd set %%f shift ) :DoCmd %1 %2 %3 %4 %5 %6 %7 %8 %9 endlocal The only difference is that, because of the way cmd parses, the environment assignments need to be ...


1

Turns out fish 2.3 fixes the printing behavior and leaves the command-line unescaped. In fish 2.3 commandline -b prints the command-line unescaped.


1

I solved the problem in two steps. First I set the environment varable CLICOLOR_FORCE in .cshrc to force output other then to TERM to also use colors, eg: CLICOLOR_FORCE 1 more has a command line option -R to output color sequences. -R or --RAW-CONTROL-CHARS Like -r, but only ANSI "color" escape sequences are output in "raw" ...


1

You can use two projects/plugins: https://github.com/psprint/history-search-multi-word https://github.com/psprint/zsh-navigation-tools Each of them allows multi-word incremental searching through Zshell's history. Zsh Navigation Tools also allows approximate matching and has other features.


1

you can use ported util env from package CoreUtils in GnuWin32 http://gnuwin32.sourceforge.net/ Setup it Check what directory with env.exe exists in %PATH% variable Use same way like linux version env EDITOR=vim command



Only top voted, non community-wiki answers of a minimum length are eligible