LoginSignup
2
5

More than 5 years have passed since last update.

CLI上にgitリポジトリの状態を表示するプログラム

Last updated at Posted at 2017-05-15

※どうやらVirtualenvとの相性が悪いようです。

CLI上にgitリポジトリの状態を表示するプログラムoh-my-gitについて紹介します。

概要

このような形でgitリポジトリの状態を表示してくれます。
※一部不自然な点があるのは黒塗りしているためです。
c8519725-7d82-0db2-00d6-eb465e65cf9c.png

インストール方法

UbuntuでBashを使用する場合を想定しています。

  1. sudo apt install gitコマンドを実行し、gitをインストールします。
  2. git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-gitコマンドを実行し、oh-my-gitをcloneします。
  3. echo source ~/.oh-my-git/prompt.sh >> ~/.bashrcコマンドを実行し、oh-my-gitのインストールを行います。
  4. cd /tmpコマンドを実行し、tmpディレクトリに移動します。
  5. git clone -b patching-strategy http://github.com/gabrielelana/awesome-terminal-fontsコマンドを実行し、awesome-terminal-fontsをcloneします。
  6. cd awesome-terminal-fontsコマンドを実行し、cloneしたディレクトリに移動します。
  7. mkdir -p ~/.fontsコマンドを実行し、フォント用のディレクトリを作成します。
  8. cp patched/*.ttf ~/.fontsコマンドを実行し、cloneしたディレクトリ上のファイルをフォント用のディレクトリにコピーします。
  9. sudo fc-cache -fv ~/.fontsコマンドを実行し、フォント情報を更新します。
  10. 端末の設定から、フォントをSourceCodePro+Powerline+Awesome Regularに設定します。
  11. 端末を再起動します。

参考文献

2
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
5