Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

[Feature Request] Check if shell is Bash or ZSH. Store and source accordingly. #32

Open
qumberrizvi opened this issue Aug 6, 2020 · 2 comments

Comments

@qumberrizvi
Copy link

qumberrizvi commented Aug 6, 2020

ZSH support can be added out of the box if you check for the active shell before-hand.
This should tell you what shell is active:

if ! [ -z ${ZSH_VERSION+x} ]; then
       shellrc = "~/.zshrc"
else
       shellrc = "~/.bashrc"
fi

@qumberrizvi qumberrizvi changed the title Check if shell is Bash or ZSH. Store and source accordingly. [Feature Request] Check if shell is Bash or ZSH. Store and source accordingly. Aug 6, 2020
@unbelievableflavour
Copy link
Owner

Why not create a PR? I don't actively work on this project anymore but I would be happy to merge and create a release for you :)

@qumberrizvi
Copy link
Author

Sure, will. 😊

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants