Skip to content

Commit

Permalink
add setting for WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
kn1cht committed May 8, 2018
1 parent 4bfa5bf commit df7e3aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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"

0 comments on commit df7e3aa

Please sign in to comment.