From 5b05e4b9d20ffd9065fd91fe01d3bf269fcc01ed Mon Sep 17 00:00:00 2001 From: kn1cht Date: Fri, 28 Jul 2017 23:58:10 +0900 Subject: [PATCH] F6 make --- .vimrc | 10 +++++++++- .zshrc | 12 ++++++++---- setup.sh | 4 +++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index 16b170d..21088c3 100644 --- a/.vimrc +++ b/.vimrc @@ -21,7 +21,7 @@ set tabstop=2 set whichwrap=b,s,h,l,<,>,[,] set backspace=indent,eol,start autocmd BufWritePre * :%s/\s\+$//ge -autocmd BufWritePre * :%s/\t/ /ge +"autocmd BufWritePre * :%s/\t/ /ge "--------------------------------------------------------------------------- " history @@ -63,6 +63,14 @@ function! s:C() :w :!g++ --std=c++11 -O2 -Wall % -o x :endfunction + +" F6キーでmake +command! Make call s:Make() +nmap :Make +function! s:Make() + :w + :!make +:endfunction """""""""""""""""""""""""""""" " md as markdown, instead of modula2 autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown diff --git a/.zshrc b/.zshrc index 9fa2485..da3d2b5 100644 --- a/.zshrc +++ b/.zshrc @@ -33,13 +33,17 @@ alias ls='ls -Ga' alias mkdir='mkdir -p' alias sudo='sudo ' alias rot13='tr A-Za-z N-ZA-Mn-za-m' +alias md2pdf='pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex' +alias md2pdf-ref='pandoc -f markdown -V documentclass=ltjarticle -V geometry:margin=1in --latex-engine=lualatex --filter pandoc-crossref' # C で標準出力をクリップボードにコピーする # mollifier delta blog : http://mollifier.hatenablog.com/entry/20100317/p1 alias -g C='| pbcopy' export PATH=/opt/local/bin:/opt/local/sbin:~/bin:$PATH -export PATH="$HOME/.rbenv/bin:$PATH" -export PATH="$PATH:"/Applications/microchip/xc8/v1.35/bin"" -export PATH=$PATH:/usr/local/share/git-core/contrib/diff-highlight -export PATH="$PATH":/Users/RYK6U0327/isrb2 +export PATH=$HOME/.rbenv/bin:~/Library/Python/2.7/bin:~/.go/bin:$PATH +export PATH=/Applications/microchip/xc8/v1.35/bin:$PATH +export PATH=/usr/local/share/git-core/contrib/diff-highlight:$PATH +export PATH=/Users/RYK6U0327/isrb2:$PATH +export GOPATH=$HOME/.go/ +export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig eval "$(rbenv init -)" diff --git a/setup.sh b/setup.sh index 2994981..d984d67 100755 --- a/setup.sh +++ b/setup.sh @@ -1,8 +1,10 @@ #!/bin/bash +cd `dirname $0` + DOT_FILES=(.bashrc .bash_profile .vimrc .zshrc) for file in ${DOT_FILES[@]} do - ln -s $HOME/Documents/git/dotfiles/$file $HOME/$file + ln -s ./$file $HOME/$file done