santinic / how2

AI for the Command Line
https://how2terminal.com
MIT License
5.72k stars 156 forks source link

Change default language #29

Closed sargunv closed 1 year ago

sargunv commented 8 years ago

It would be nice to either read the user's default shell, or read a dotfile in the ~ or ~/.config/how2 directory to to set default language.

I use the fish shell, so will never use the default language of Bash for how2.

Currently I've set an alias in my shell.

panayotoff commented 8 years ago

Hi, can you share the alias, I can't make it take multiple arguments, and doesn't want to change the JS files;

sargunv commented 8 years ago

I use Fish:

function howto
  how2 -l fish $argv
end

I haven't tested bash, but it should be something like

alias howto='how2 -l fish'
panayotoff commented 8 years ago

Works perfect, thanks