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 リポジトリにいるか」のほうを知りたいケースが多