2017-04-01から1ヶ月間の記事一覧

git archive を使ってリリース用ファイルをエクスポートする

/var/tmp/junk にファイルをエクスポートする。 $ git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ && tar xf -) エクスポートしたくないファイルがあるときは .gitattributes に書いて、git archive 時に --worktree-attributes オプション…

個人的に peco のインストーラーが欲しかった

ので書いた。 github.com curl -s https://utahta.github.io/peco-get/get | sh というコマンドを打つだけで $HOME/bin/ 配下に peco がインストールされる。便利! なぜこのようなものが欲しかったかというと、dotfiles をインストールする時に peco を一緒…