shinriyo/breeze

The 'exec_scmb_expand_args' equivalent function

Opened this issue ยท 4 comments

ahter commented

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?

@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

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 commented

@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 commented

@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?