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

Feature: Expand aliases #41

Open
frippe75 opened this issue Jan 1, 2017 · 1 comment
Open

Feature: Expand aliases #41

frippe75 opened this issue Jan 1, 2017 · 1 comment
Labels
enhancement Feature requests or improvements

Comments

@frippe75
Copy link

frippe75 commented Jan 1, 2017

Could be nice to have an option whether or not to auto expand aliases.
To save time I usually put an alias for openstack as "o" which means my history looks like
o server list
o stack list

and so on...

Sometimes I'm sloppy and don't setup my aliases everywhere. So then
o server list doesn't really mean something.

Think autoexpanding would make sense as a default but I only gave that thought about 10 sec :-)

@rcaloras rcaloras added the enhancement Feature requests or improvements label Jan 3, 2017
@rcaloras
Copy link
Owner

rcaloras commented Jan 4, 2017

@frippe75 thanks for suggesting. This would be easy to implement if there was a function to programatically expand aliases in a string. Basically like alias-expand-line except accessible from a bash script or python. It's referenced a bit here:

http://superuser.com/questions/247770/how-to-expand-aliases-inline-in-bash
http://stackoverflow.com/questions/14180906/programmatically-dereference-resolve-aliases-in-bash

If you can find a reliable way to do it, I'll help with the PR 👍

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

No branches or pull requests

2 participants