Adding powershell to chef shell-init

This partially replaces https://github.com/opscode/chef-dk/pull/187.
* chef shell-init supports powershell: `chef shell-init powershell`
* posh is aliased to powershell: `chef shell-init posh`

cc @btm @adamedx @opscode/client-engineers 
That is the implementation

On Wed Dec 03 2014 at 10:43:28 AM Dan DeLeo <notifications@github.com>
wrote:

> In lib/chef-dk/command/shell_init.rb:
>
> >          end
> >          0
> >        end
> > +
> > +      def export(shell, var, val)
> > +        case shell
> > +        when 'sh', 'bash', 'zsh'
> > +          posix_shell_export(var, val)
> > +        when 'powershell', 'posh'
>
> I'm confused. What I would expect to happen is:
>
> chef shell-init posh | Invoke-Expression
>
> Would do exactly the same thing as
>
> chef shell-init powershell | Invoke-Expression
>
> and both would be run in powershell, one just saves you some typing and
> possibly makes us seem cool to the powershell crowd [image: :wink:]
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/opscode/chef-dk/pull/253/files#r21253969>.
>