-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Run custom commands in interactive shell #4047
Comments
NewShell() in the /oscommands/cmd_obj_builder.go I just open up another pane, do work then hop back. |
There is also
|
If so I am not able to find where this function call has to be changed |
There are some thoughts shared in #3299 (comment). Using Since custom commands are typically one-off configurations in config.yml, it should be fine to write the original command directly. However, for shell commands that you frequently type and reuse, using |
Is your feature request related to a problem? Please describe.
When a custom command is specified in the config it runs it with
bash -c "<command>"
. I'd like this shell to be interactive to be able to run shell aliases which lie in my.bashrc
.Describe the solution you'd like
Run
bash -ic "<command">
Describe alternatives you've considered
Currently I am adding a layer of bash:
which runs
bash -c bash -ic "git_delete_old_branches"
Additional context
Maybe make this a config variable?
I tried to go through the source code to check where the
bash -c
(without-i
) is invoked but was a bit overwhelmed by the search results. If someone could show me where this is done I'd take a crack at creating a PR.The text was updated successfully, but these errors were encountered: