+
Skip to content

HikaruEgashira/gh-q

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

gh-q

🔹Report Bug     🔹Request Feature

$ gh q --help
Usage:
  gh q get <repo>     ... Clone a repository into ~/ghq/github.com
  gh q list           ... List all repositories in ~/ghq/github.com
  gh q clean [--days N] [--dry-run]
                     ... Delete repos with no local activity for N days (default 15) under ~/ghq
  gh q -- <command>   ... Search via fzf and run <command> in the selected directory
  gh q <command>      ... Search via fzf and run <command> with selected directory as argument


$ gh q --help
Usage:
  gh q get <repo>     ... リポジトリを~/ghq/github.comにクローン
  gh q list           ... ~/ghq/github.comにある全リポジトリを表示
  gh q clean [--days N] [--dry-run]
                     ... ローカル活動がN日以上ないリポジトリを ~/ghq から削除 (デフォルト15日)
  gh q -- <command>   ... fzfで検索し、選択したディレクトリで<command>を実行
  gh q <command>      ... fzfで検索し、選択したディレクトリを引数として<command>を実行

Command Execution Modes

Path Argument Mode: gh q <command>

Passes the selected directory path as an argument to the command.

gh q code        # Opens VS Code with the selected directory
gh q ls -la      # Lists files in the selected directory

Directory Change Mode: gh q -- <command>

Changes to the selected directory first, then executes the command.

gh q -- claude        # Run Claude Code in the selected directory
gh q -- npm test      # Runs npm test in the selected directory

Blog post

[gh-q] gh extensionでghqを置き換える - Zenn

Usage

# Install
gh extension install HikaruEgashira/gh-q
gh q get HikaruEgashira/gh-q

Integration with other gh extensions

Works well with:

  • gh-wt: Git worktree management
  • gh-ws: VSCode workspace management with worktrees
# Example workflow
gh q                    # Select repository
gh wt add feature/new   # Create new worktree
gh ws init              # Create/update workspace

About

rewrite ghq

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载