Alexander Mills

Results 200 comments of Alexander Mills

I got something working pretty well that allows you to switch npm versions without having to reinstall a new version everytime you want to switch: https://github.com/ORESoftware/npm.version

I havent actively set +h, but maybe thats the default in the shell, idk if nixos is posix compliant, i just started using it at work b/c I have to

@ljharb from a google search it appears to be posix compliant, but not 100% sure

sort of worked at first, but failure happened later? see complete linear history: ``` [root@ec2-xxx-xxx-92-143:/var/lib/backend]# set -h [root@ec2-xxx-xxx-92-143:/var/lib/backend]# nvm install 11 nvm: command not found [root@ec2-xxx-xxx-92-143:/var/lib/backend]# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh |...

ok so this works: ```js vorpal .mode('bash') .delimiter('bash:') .init(function(args: Array, callback: Function){ this.log('Welcome to bash mode.\nYou can now directly enter arbitrary bash commands. To exit, type `exit`.'); callback(); }) .action(function(command:...

@ujc nice, that's a step in the right direction - but you don't want to use cp.exec, you ideally want to use cp.spawn. If you can get the plain string...

@ujc the above post is very important to understand. I think your solution would be great (using catch) the problem is that I can't find a way to get vorpal...

@dthree @danielhickman @milesj Instead of dropping into yet another shell using `vorpal.mode()`, is there a way to get the unadulterated string from the vorpal command line so we can feed...

the advantages of using spawn are nearly infinite in this case - if you use exec, you have to pre-parse the command only for bash to interpret it again. To...

Using catch, I have this: ```js vorpal .catch('[foo]', 'Catches incorrect commands') .action(function (args: Array, cb: Function) { console.log('caught => my args:', util.inspect(args)); cb(); }); ``` I can't seem to access...