format = """ ${custom.git_repo}\ $directory\ # ... """ [custom.git_repo] when = true require_repo = true command = 'git rev-parse --show-toplevel | sed -e "s,$(ghq root)/\(github\.com/\)\?,,"' style = 'bold blue' # style はお好み [directory] repo_root_format = '[($path )]($style)' repo_root_style = 'blue' # style はお好み # ... モチベーション 筆者は git リポジトリ上で生活している時間が長いため、正確なフルパスよりも「どの git リポジトリにいるか」のほうを知りたいケースが多
![Starship のリポジトリ表記を ghq get の引数の形式にする](https://cdn-ak-scissors.b.st-hatena.com/image/square/48daf3dce140a37fcd6c9f37fb0cd55715701ec8/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--fxtETOVC--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3AStarship%252520%2525E3%252581%2525AE%2525E3%252583%2525AA%2525E3%252583%25259D%2525E3%252582%2525B8%2525E3%252583%252588%2525E3%252583%2525AA%2525E8%2525A1%2525A8%2525E8%2525A8%252598%2525E3%252582%252592%252520ghq%252520get%252520%2525E3%252581%2525AE%2525E5%2525BC%252595%2525E6%252595%2525B0%2525E3%252581%2525AE%2525E5%2525BD%2525A2%2525E5%2525BC%25258F%2525E3%252581%2525AB%2525E3%252581%252599%2525E3%252582%25258B%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3AMasayuki%252520Izumi%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EtL0FPaDE0R2pLQnhYeEszZEtUbG80dkZXU04zbWNpU0lvNlRFckpid1M3WUdoeFE9czI1MC1j%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)