Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Let enter output git status #38

Open
lode opened this issue Mar 9, 2015 · 1 comment
Open

Let enter output git status #38

lode opened this issue Mar 9, 2015 · 1 comment

Comments

@lode
Copy link

lode commented Mar 9, 2015

From https://github.com/thoughtbot/gitsh I loved the feature of using enter to get the current git status. It feels very natural and a handy shortcut.

(I do like how most commands, i.e. also arrow keys, are given to the normal systems prompt, that should not change in its base.)

@lode lode changed the title enter gives output of git status Let enter output git status Mar 9, 2015
@nikreiman
Copy link

I don't think that this is technically possible. It works in gitsh because that is a separate executable program, and can thus can handle enter separately. However, git-sh is just a set of shell aliases and extensions build on top of bash, and afaik bash does not offer a way to do this other than PROMT_COMMAND, which as the name suggests actually executes on every command (whether it was empty or not).

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

No branches or pull requests

2 participants