Skip to content

Instantly share code, notes, and snippets.

View kyohsuke's full-sized avatar
🇯🇵

KAWAHARA Keisuke kyohsuke

🇯🇵
View GitHub Profile
@kyohsuke
kyohsuke / build_ricty.sh
Created November 9, 2011 09:53
Auto Build Ricty fonts, But it needs fontforge. It is modified code, that is here: http://d.hatena.ne.jp/yukke112/20110521/1305988867
RICTYURL="http://save.sys.t.u-tokyo.ac.jp/~yusa/fonts/ricty/Ricty-3.1.2.tar.gz"
MIGM1URL="http://sourceforge.jp/frs/redir.php?m=iij&f=%2Fmix-mplus-ipa%2F53389%2Fmigu-1m-20111002.zip"
INCONSURL="http://levien.com/type/myfonts/Inconsolata.otf"
CURDIR=`pwd`
TMPDIR=`mktemp -d`
TMPDIR2=`mktemp -d`
trap "cd $CURDIR; rm -rf $TMPDIR $TMPDIR2" INT HUP QUIT
@kyohsuke
kyohsuke / gist:976232
Created May 17, 2011 10:04
環境変数を波及させるのって、こんな感じだったらいいのかな?
function! s:pushEnv(shname)
if a:shname == 'bash'
let l:envs = split(system('bash -c "source ~/.bashrc; source ~/.bash_profile; export"'))
elseif a:shname == 'zsh'
let l:envs = split(system('zsh -c "source ~/.zshrc; source ~/.zshenv; export"'))
else
return
endif
for l:env in l:envs