You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
ググってみると色々あったのですが、あまりシンプルなのがなかったので調べつつやってみました git name-rev HEAD --name-only みたいなものがあるだろうなとは思いつつ、コマンドが多くてなかなか見つかりませんでした。 _set_env_git_current_branch() { GIT_CURRENT_BRANCH=$( git name-rev HEAD --name-only ) &> /dev/null } _update_rprompt () { RPROMPT=$GIT_CURRENT_BRANCH } precmd() { _set_env_git_current_branch _update_rprompt } chpwd() { _set_env_git_current_branch _update_rprompt } gitのリポジトリ内かどうか判定
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く