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

remove "look" subcommand #241

Closed
Songmu opened this issue Dec 26, 2019 · 1 comment · Fixed by #243
Closed

remove "look" subcommand #241

Songmu opened this issue Dec 26, 2019 · 1 comment · Fixed by #243

Comments

@Songmu
Copy link
Member

Songmu commented Dec 26, 2019

We can substitute ghq look with the following command.

% ghq get --look motemen/ghq

Also, this "look" function is for temporarily looking at the contents of the repository, and is not suitable for changing the working directory.

This is because the "look" function creates a child process, which needs exit command to exit. This causes non-intuitive behavior.

For switching the working directory, it is recommended to just "cd".

% cd $(ghq list --full-path --exact motemen/ghq)
@snowman
Copy link

snowman commented Oct 7, 2020

Put this for interactive search:

alias ghqq='cd $(ghq list -full-path --exact $(ghq list | sed "s:[^/]*/::" | percol))'

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

Successfully merging a pull request may close this issue.

2 participants