Skip to content

Preferred shell options #888

Closed
Closed

Description

@iAmWillShepherd

Users should be able to select their preferred shell in settings. In cases where no selection is made, we should use the OS default.

Activity

  1. joshaber commented on Feb 1, 2017

    @joshaber
    Contributor

    Anyone feel like this needs to be in beta? We never had it in Mac so I don't feel strongly, but maybe the situation is different on Windows?

  2. iAmWillShepherd commented on Feb 1, 2017

    @iAmWillShepherd
    ContributorAuthor

    I don't think it needs to be in beta, but it should definitely be in the 1.0 release.

  3. joshaber commented on Feb 2, 2017

    @joshaber
    Contributor

    👍 Dropping it in 1.0.

  4. kmscode commented on Jul 18, 2017

    @kmscode
    Contributor

    Would love to see this in Windows prior to 1.0 since cmd.exe is just terrible. Looks like you've got a fair amount of users looking for this as well between up-votes and referenced issues...

    I would love to see an option to use git-bash.exe, but powershell at a minimum. Thanks!

  5. joshaber commented on Jul 18, 2017

    @joshaber
    Contributor

    Thanks @kmscode, we're planning to do this for 1.0 👍

  6. joshaber commented on Jul 24, 2017

    @joshaber
    Contributor

    This needs design around how we set it in Preferences.

  7. self-assigned this
    on Jul 26, 2017
  8. joshaber commented on Aug 11, 2017

    @joshaber
    Contributor

    I assume this'll be more or less like "Open in External Editor."

    What shells do we wanna support? For Mac, I'd guess:

    • Terminal
    • iTerm2
    • Hyper
    • Any other popular ones I'm forgetting?

    And for Windows I have no idea 😆

  9. tajnymag commented on Aug 11, 2017

    @tajnymag

    For Windows, shells which I could imagine to be wanted are:

    • PowerShell (probably the most wanted)
    • Git Bash
    • Bash on Ubuntu on Windows
    • MSYS2
  10. kmscode commented on Aug 11, 2017

    @kmscode
    Contributor

    For windows, I would hope that the following options would be available at a minimum:

    • %ProgramFiles%\Git\bin\bash.exe (if available)
    • %ProgramFiles%\Git\git-bash.exe (if available)
    • %windir%\System32\WindowsPowerShell\v1.0\powershell.exe (if available)
    • %windir%\system32\cmd.exe
    • Custom (fill in the blank with a full path)

    Notes:
    The options as listed above look ugly and since the current UI is so nice, maybe pretty up the front end and list:

    • Git-Bash
    • PowerShell
    • CMD
    • Custom

    Or something like that.

    The installdir for Git can be found in the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\GitForWindows\InstallPath
    

    as it may be different than specified above.

    CMD will be available on all systems. PowerShell will be available on more modern systems out of the box, but will require a separate install on older Windows versions. Just another pitfall that you may have to account for...

    Other popular ones might be Cygwin, and Bash that is available in later versions of Windows 10. However, the "custom" field covers all of these (at least for now) since they are less likely to be available out-of-the-box.

    edit: proper git-bash.exe item.

  11. joshaber commented on Aug 11, 2017

    @joshaber
    Contributor

    Thanks @tajnymag, @kmscode! 💖

  12. self-assigned this
    on Aug 14, 2017
  13. forrestab commented on Feb 3, 2018

    @forrestab

    Just wondering, what happened to the Custom option, it doesn't appear in the 1.0.13 version. I would like to use WSL/Bash on Ubuntu on Windows, however, my only options are Command Prompt, Powershell, Hyper and Git Bash.

    Also, will changing this also change where git hooks are ran?

  14. shiftkey commented on Feb 3, 2018

    @shiftkey
    Member

    @forrestab we don't currently have plans to bring back the custom shell, for reasons I outlined in a different issue: #2487 (comment)

    We're open to taking contributions to enable WSL as an option, the details about how to add support is covered by our docs: https://github.com/desktop/desktop/blob/master/docs/technical/shell-integration.md

  15. shiftkey commented on Feb 3, 2018

    @shiftkey
    Member

    Also, will changing this also change where git hooks are ran?

    I'm not aware of any issues like this with Git hooks.

  16. forrestab commented on Feb 3, 2018

    @forrestab

    @shiftkey the git hooks appear to only have problems if the npm scripts you want to run in them were installed via WSL because there is no executable or *.cmd file for windows to execute. It is not any issue per-se, but what I believe is a disconnect between the two systems (windows and wsl).

    Thanks for the response though.

  17. locked as resolved and limited conversation to collaborators on Jul 18, 2018
  18. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions