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

new feature: Adding command aliases #166

Open
0xDRRB opened this issue Feb 26, 2024 · 1 comment
Open

new feature: Adding command aliases #166

0xDRRB opened this issue Feb 26, 2024 · 1 comment

Comments

@0xDRRB
Copy link
Contributor

0xDRRB commented Feb 26, 2024

It would be great to be able to define aliases for certain recurring commands, like "alias atr = ]%%[read:33" for smartcards or something like that.

Aliases could be loaded from the MMC in the form of a text file associating a command name to be substituted with a character string. This would be loaded when entering a mode, for example smartcard.aliases loaded when entering smartcard mode.

I'm thinking of something like what I use with my pcscapdu or nfcapdu tools but without being able to use Glib and readline for that (and with much less RAM).

@bvernoux
Copy link
Member

To be checked/discussed how to add it either in https://github.com/hydrabus/tokenline (maybe the best) or directly in hydrafw ...

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

No branches or pull requests

2 participants