This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:¥Windows¥system32¥cmd.exe /c <symlink>…™/ | |
指定されたファイルが見つかりません。 | |
shell returned 1 | |
Hit any key to close this window... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 補完候補を詰めて表示 | |
setopt list_packed | |
# カッコの対応などを自動的に補完 | |
setopt auto_param_keys | |
# ディレクトリ名の補完で末尾の / を自動的に付加し、次の補完に備える | |
#setopt auto_param_slash | |
# ファイル名の展開でディレクトリにマッチした場合末尾に / を付加する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Initialize: "{{{ | |
let s:is_windows = has('win16') || has('win32') || has('win64') | |
let s:is_cygwin = has('win32unix') | |
let s:is_mac = !s:is_windows && !s:is_cygwin | |
\ && (has('mac') || has('macunix') || has('gui_macvim') || | |
\ (!executable('xdg-open') && | |
\ system('uname') =~? '^darwin')) | |
"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Initialize: "{{{ | |
" Enable no Vi compatible commands. | |
set nocompatible | |
let s:is_windows = has('win16') || has('win32') || has('win64') | |
let s:is_cygwin = has('win32unix') | |
let s:is_mac = !s:is_windows && !s:is_cygwin | |
\ && (has('mac') || has('macunix') || has('gui_macvim') || | |
\ (!executable('xdg-open') && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 空のディレクトリに .gitkeep を追加する | |
find . -type d -not -path './.git*' -empty -print0 | xargs -0I% touch %/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PDFを縦幅1500pxの3桁0埋め連番JPEGファイルに変換する | |
convert -density 300 -resize x1500 -verbose *.pdf %03d.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git-find() { | |
find $1 \( -type d -name '.git' -prune \) -or \( $*[2,-1] -print \) | |
} | |
function git-find0() { | |
find $1 \( -type d -name '.git' -prune \) -or \( $*[2,-1] -print0 \) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# master 上で git merge するときは常に --no-ff | |
git config branch.master.mergeoptions "--no-ff" | |
## あわせて設定しておくと吉 | |
# master 上で git pull するときは常に rebase | |
git config branch.master.rebase true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# master 上で git pull するときは常に rebase | |
git config branch.master.rebase true | |
# 全ブランチで rebase を使う | |
git config --global branch.autosetuprebase always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh user@host cat /path/to/remotefile | diff /path/to/localfile - |