zmv 'hoge-(*).(*).(*).tar.gz' 'hoge-$1--$2--$3.tar.gz'
zmv -w 'hoge-*.*.*.tar.gz' 'hoge-$1--$2--$3.tar.gz'
zmv -W 'hoge-*.*.*.tar.gz' 'hoge-*--*--*.tar.gz'
(n=1; zmv '*.jpg' '${(l:3::0:)$((n++))}.jpg')
tar -xzvf fn
tar -xjvf fn
gzip -d fn
bzip2 -d fn
lha x fn
unzip fn
tar -zcvf fn.tar.gz target
tar -jcvf fn.tar.bz2 target
gzip target
bzip2 target
( -k: 圧縮及び展開する際,元ファイルを削除しない)lha c fn.lzh target
zip fn.zip target
ハードウエア情報取得
for c in {000..255}; do echo -n "\e[38;5;${c}m $c" ; [ $(($c%16)) -eq 15 ] && echo;done;echo
DEFAULT_COMMAND_LATEXMK = ['latexmk', '-cd', '-e', "$pdflatex = 'lualatex -interaction=nonstopmode -synctex=1 %S %O'", '-f', '-pdf', 'drop.tex']
DEFAULT_COMMAND_LATEXMK = ["latexmk", "-cd",
"-e", "$latex = 'platex %O -interaction=nonstopmode -synctex=1 %S'",
"-e", "$biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B'",
"-e", "$bibtex = 'upbibtex %O %B'",
"-e", "$makeindex = 'makeindex %O -o %D %S'",
"-e", "$dvipdf = 'dvipdfmx %O -o %D %S'",
"-f", "-norc", "-gg", "-pdfdvi"]
"osx": {
// Path used when invoking tex & friends; MUST include $PATH
"texpath" : "$PATH:/Library/TeX/texbin:/usr/local/bin:/opt/local/bin"
// Path to PDF viewer, if needed
// TODO think about it. Also, maybe configure it here!
},
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin