git

csh/tcsh で git のブランチ名をプロンプトに表示する

gitのブランチ名をプロンプトに表示すると結構便利 - (ひ)メモ らしいので、tcsh版を作ってみた。 alias gitbranch 'git branch --no-color |& sed -e "/^[^*]/d" -e "s/* \(.*\)/:\1/"' alias prompt 'set prompt="[%M:%c3:%h`gitbranch`]"' alias cd 'cd…