diff --git a/.vimrc b/.vimrc index 2f3fe0a..9c25b7a 100644 --- a/.vimrc +++ b/.vimrc @@ -20,6 +20,8 @@ set smarttab set tabstop=2 set whichwrap=b,s,h,l,<,>,[,] set backspace=indent,eol,start +set encoding=utf-8 +set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8 autocmd BufWritePre * :%s/\s\+$//ge "autocmd BufWritePre * :%s/\t/ /ge diff --git a/.zshrc b/.zshrc index 7fa8a63..1327293 100644 --- a/.zshrc +++ b/.zshrc @@ -35,6 +35,13 @@ alias mkdir='mkdir -p' alias sudo='sudo ' alias rot13='tr A-Za-z N-ZA-Mn-za-m' +if [ "$(uname)" = 'Darwin' ]; then + export LSCOLORS=xbfxcxdxbxegedabagacad + alias ls='ls -G' +else + alias ls='ls --color=auto' +fi + funciton md2pdf (){ pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex $@ -o ${1%.*}.pdf } funciton md2pdf-ref (){ pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex --filter pandoc-crossref $@ -o ${1%.*}.pdf } @@ -51,3 +58,4 @@ export PATH=/usr/local/share/git-core/contrib/diff-highlight:$PATH export PATH=$HOME/isrb2:$PATH export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig eval "$(rbenv init -)" +export LC_COLLATE="C"