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

Aliasing internal gitsh commands #244

Open
sammylupt opened this issue Nov 16, 2015 · 2 comments
Open

Aliasing internal gitsh commands #244

sammylupt opened this issue Nov 16, 2015 · 2 comments
Milestone

Comments

@sammylupt
Copy link

There doesn't seem to be a way to alias :exit within gitsh.
Neither of these lines work when added to my gitconfig:

e = ":exit"
e = !":exit"

I would like to be able to type e to :exit gitsh. Is this by design or is there a way to alias the command?

@georgebrock
Copy link
Collaborator

There currently isn't any way to create an alias that calls a gitsh internal command (i.e. any command with a : prefix). This would probably be useful to add.

In this specific case, it might be useful to know that you can exit by sending an EOF character with ctrl+d. Shorter than :exit, and the same length as ereturn!

@georgebrock georgebrock changed the title Aliasing :exit command Aliasing internal gitsh commands Nov 17, 2015
@sammylupt
Copy link
Author

Very useful to know, thank you! And thanks for Gitsh

@georgebrock georgebrock added this to the v1.0 milestone Feb 3, 2019
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