We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using non-bash shell say zsh, shell does not open.
In file aquarium.py, executing subprocess.call([SHELL, "--init-file", f"{aliases_file}", "-i"]) produces error /usr/bin/zsh: no such option: init_file
aquarium.py
subprocess.call([SHELL, "--init-file", f"{aliases_file}", "-i"])
/usr/bin/zsh: no such option: init_file
this is because zsh dont support providing init-file yet.
if SHELL.endswith('zsh')
SHELL="/usr/bin/bash" subprocess.call([SHELL, "--init-file", f"{aliases_file}", "-i"])
if SHELL.endswith('zsh'): subprocess.call(["/usr/bin/bash", "--init-file", f"{aliases_file}", "-i"]) else: subprocess.call([SHELL, "--init-file", f"{aliases_file}", "-i"])
since zsh dont support init-file this has to be done the hard-way.
Any solution to support zsh with aliases is most welcome.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
When using non-bash shell say zsh, shell does not open.
In file
aquarium.py
,executing
subprocess.call([SHELL, "--init-file", f"{aliases_file}", "-i"])
produces error
/usr/bin/zsh: no such option: init_file
this is because zsh dont support providing init-file yet.
Expected Results
if SHELL.endswith('zsh')
.Solution1.
SHELL="/usr/bin/bash"
subprocess.call([SHELL, "--init-file", f"{aliases_file}", "-i"])
Solution2.
if SHELL.endswith('zsh'):
subprocess.call(["/usr/bin/bash", "--init-file", f"{aliases_file}", "-i"])
else:
subprocess.call([SHELL, "--init-file", f"{aliases_file}", "-i"])
Solution3.
since zsh dont support init-file this has to be done the hard-way.
Any solution to support zsh with aliases is most welcome.
The text was updated successfully, but these errors were encountered: