This file contains hidden or 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
"filename : airautofile.vim | |
"" ファイルを保存して終了するときに、ファイル名を指定行に記述する | |
""" setting | |
"" 有効、無効の設定 (on=1, {off=0, null}) | |
" let g:air_autofile_cmd = 1 | |
"" 行の指定 (nullの場合は最終行) | |
" let g:air_autofile_line = 1 | |
"" 先頭につける文章を指定する (def : " ) | |
" let g:air_autofile_commnet = '"filename : ' |
This file contains hidden or 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
#!/bin/zsh | |
sfile=${0:a:t} | |
case $1 in | |
-[hH]|-[hH]elp) | |
echo " | |
引数1...ファイル名 | |
引数2...キーワード1 | |
引数3...キーワード2 |
This file contains hidden or 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
https://github.com/Cloudef/dotFiles | |
https://github.com/SpringMT/dotfiles | |
https://github.com/Thann/dotfiles | |
https://github.com/akishin/dotfiles | |
https://github.com/alwei/dotfiles | |
https://github.com/cehoffman/dotfiles | |
https://github.com/cocopon/dotfiles | |
https://github.com/deris/dotfiles | |
https://github.com/dmalikov/dotfiles | |
https://github.com/en30/dotfiles |
This file contains hidden or 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
sort $1 -uo $1 |
This file contains hidden or 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 cdup_dir() { | |
if [[ -z "$BUFFER" ]]; then | |
echo | |
cd .. | |
ls -aF | |
zle reset-prompt | |
else | |
zle self-insert 'k' | |
fi | |
} |
This file contains hidden or 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
let s:tweetvim_notfiy_update_interval_seconds = 2 | |
let s:tweetvim_notfiy_timestamp = reltime()[0] | |
let s:tweetvim_notfiy_getline_1 = getline(3) | |
fu! s:tweetvim_notfiy() | |
let n_current = reltime()[0] | |
if n_current - s:tweetvim_notfiy_timestamp > s:tweetvim_notfiy_update_interval_seconds | |
if s:tweetvim_notfiy_getline_1 != getline(3) | |
let s:tweetvim_notfiy_getline_1 = getline(3) | |
call system("growlnotify -m '" . getline(3) . "'") |
This file contains hidden or 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 au(){ | |
case $1 in | |
-o|*) | |
SwitchAudioSource -a | grep output | cut -d '(' -f 1 | sed -e 's/ *$//' -e 's/$/"/g' -e 's/^/"/g' | peco | xargs -J % SwitchAudioSource -s % | |
;; | |
-i) | |
SwitchAudioSource -a | grep input | cut -d '(' -f 1 | sed -e 's/ *$//' -e 's/$/"/g' -e 's/^/"/g' | peco | xargs -J % SwitchAudioSource -t input -s % | |
;; | |
esac | |
#zle reset-prompt |
This file contains hidden or 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
#!/bin/zsh | |
dir=${0:a:h}/dotfiles/ | |
url=`curl https://raw.githubusercontent.com/syui/dotfiles/master/.dotfiles` | |
line=`echo $url | wc -l | tr -d ' '` | |
for ((i = $line ; i > 0 ; i-- )) | |
do | |
repo=`echo $url | awk "NR==$i"` | |
file=`echo $repo | cut -d '/' -f 4` |
This file contains hidden or 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
#!/bin/zsh | |
dir=${0:a:h}"/vimrc" | |
mkdir -p $dir | |
# github, bitbucket {{{ | |
dot=`curl http://vim-jp.org/reading-vimrc/json/archives.json | jq -r '.[] | .vimrc | .[] | .url' | sed -e 's/\/github.com/\/raw.githubusercontent.com/g' -e 's/\/blob//g' -e 's/\/gist.github.com/\/gist.githubusercontent.com\/thinca/g' -e 's/\/src/\/raw/g'` | |
line=`echo $dot | wc -l | tr -d ' '` |
This file contains hidden or 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 gitinit(){ | |
echo -n username: | |
read user | |
repo=`echo $PWD:t` | |
repo_j={\"name\":\"$repo\"} | |
url="https://github.com/"$user/$repo.git | |
curl -u $user https://api.github.com/user/repos -d $repo_j | |
case $? in | |
0) | |
rm -rf .git |