BEIKE blog

備忘録です

2021-03-13から1日間の記事一覧

Ubuntu bashのプロンプトにgit branchを表示する

以下のコードをbashrcにコピペして、sourceすれば スグに使える。 if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi if [ -f /etc/bash_completion.d/git-prompt ]; then export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@…