Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] auto mode and zsh support for shell command #70

Merged
merged 5 commits into from
May 31, 2019

Conversation

iwilltry42
Copy link
Member

By default, the shell command now uses auto-mode, where it selects the shell based on the $SHELL environment variable. It then checks if that shell is supported and selects the required options from a map.
I also added support (options) for zsh.

@iwilltry42 iwilltry42 added the enhancement New feature or request label May 29, 2019
@iwilltry42 iwilltry42 requested review from zeerorg and andyz-dev May 29, 2019 07:17
@iwilltry42 iwilltry42 self-assigned this May 29, 2019
@andyz-dev
Copy link
Contributor

Thanks for the enhancement. It looks good in general.

I am not a zsh user, but from what I read, it seems zsh uses the "PROMPT" variable, instead of PS1. Is this true? If yes, then should also improve this for zsh users?

@iwilltry42
Copy link
Member Author

Actually both PS1 and PROMPT work for me, but you're right that PROMPT is the default for zsh, changing it now.

@andyz-dev
Copy link
Contributor

Nice!

Should line 87 be touched up further?

@iwilltry42
Copy link
Member Author

Whoops... sure thing, updated 👍

main.go Outdated Show resolved Hide resolved
Copy link
Contributor

@andyz-dev andyz-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good.

@andyz-dev andyz-dev merged commit d1a7093 into master May 31, 2019
@iwilltry42 iwilltry42 deleted the feature/auto-shell-and-zsh branch September 3, 2019 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants