by shigemk2

当面は技術的なことしか書かない

hubコマンドの2系を使ってみる

Releases · github/hub · GitHub

バージョン2系からRubyではなくGoで動いていることを知る。

で、リリースページからバイナリファイルをtar圧縮したやつをダウンロードして、解凍して、パスの通ったところに置いたら、実行できるよ。

Goの環境を構築する必要はありません。やったね☆

echoを色付きで書く そらで書きたかった

$ echo -e "\e[33mhoge\e[m"

echo -eでバックスラッシュの使用を許可する。

なお、-eにはおまじない的な使い方があるそうな。

Esc[Value;...;Valuem Set Graphics Mode: Calls the graphics functions specified by the following values. These specified functions remain active until the next occurrence of this escape sequence. Graphics mode changes the colors and attributes of text (such as bold and underline) displayed on the screen.

echoコマンドの出力の色を変更する - daijirocの日記

ASCII Table - ANSI Escape sequences