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

The 'exec_scmb_expand_args' equivalent function #48

Open
ahter opened this issue Aug 24, 2022 · 4 comments
Open

The 'exec_scmb_expand_args' equivalent function #48

ahter opened this issue Aug 24, 2022 · 4 comments

Comments

@ahter
Copy link

ahter commented Aug 24, 2022

This is a question more than an issue.

I was looking for the exec_scmb_expand_args (default alias is ge in ZSH) equivalent function in shinriyo/breeze. Does it exist? If not, what's the work around you use for executing other commands with numbers?

@shinriyo
Copy link
Owner

@ahter hello/
Do you use zsh?
This project is for fish shell.
If you use zsh, you can use it.
https://github.com/scmbreeze/scm_breeze

Or do you find this?
scmbreeze/scm_breeze#254

@jdelStrother
Copy link
Collaborator

jdelStrother commented Aug 24, 2022

There's a clearer example of exec_scmb_expand_args here:

$ echo $e4
# => assets/git_breeze/git_breeze.sh
$ ge echo 4
# => assets/git_breeze/git_breeze.sh
$ ge echo 1-3
# expands to echo $e1 $e2 $e3
# => _shared.sh assets/git_breeze/config.example.sh assets/git_breeze/config.sh

echo $e4 works, but I don't think there's a full replacement for ge.

[EDIT: cancel that, echo $e4 doesn't work - I'm getting confused with scmpuff. I think the breeze equivalent is echo $arr[1]]

@ahter
Copy link
Author

ahter commented Oct 11, 2022

@shinriyo thanks for the answer. I'm using fish shell. That's why I'm using your library. 🙏

My question was how can we have the exec_scmb_expand_args functionality (ge command) (that exists for ZSH version), using your library shinriyo/breeze?

@ahter
Copy link
Author

ahter commented Nov 14, 2022

@jdelStrother thanks for your answer. 🎉

Indeed echo $arr[1] works but I still think having the ge command would be more convenient, as it's less typing, especially for the things that will always be same (repeating) such as $ and other more tricky-to-type characters like [].

@shinriyo if you are confident this doesn't already exist as a command, I'm happy to create a PR for it?

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

No branches or pull requests

3 participants