Permalink
Browse files

change shebang

  • Loading branch information...
1 parent fabd765 commit 4c5a111f07bd9727f39bd1cf417013ed273f2561 @fujimogn committed Feb 21, 2012
View
@@ -0,0 +1,3 @@
+#!/bin/zsh
+
+for i in {0..255}; do echo -e "\e[38;05;${i}m${i}"; done | column -c 200
@@ -1,11 +1,5 @@
#!/bin/zsh
-# ダウンロードフォルダ
-export DOWNLOAD_DIR=${DOWNLOAD_DIR:-${HOME}/Downloads}
-
-# # 新しくつくる
-DOWNLOAD_DIR_MKDIR=${DOWNLOAD_DIR}/`date +"%Y-%m-%d"`
-
# 指定ディレクトリ下すべてのファイル文字化けを直す
function nkf-recursive {
@@ -28,6 +22,12 @@ function wget-apachedir {
[ -z "${1}" ] && return 1
+ # ダウンロードフォルダ
+ DOWNLOAD_DIR=${DOWNLOAD_DIR:-${HOME}/Downloads}
+
+ # 新しくつくる
+ DOWNLOAD_DIR_MKDIR=${DOWNLOAD_DIR}/`date +"%Y-%m-%d"`
+
local opt=
# 出力の冗長無効
# opt+=' -nv'
@@ -65,3 +65,4 @@ function wget-apachedir {
}
+wget-apachedir $1
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/dircolors/dircolors.zsh
-# $Date: 2011-10-29T19:07:46+0900$
+# $Date: 2012-02-22T00:45:00+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
function dircolors_main {
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $file: ${DOTDIR}/earthquake/earthquake.zsh
-# $date: 2011-10-29T19:12:41+0900$
+# $date: 2012-02-22T00:45:00+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
! which earthquake >/dev/null 2>&1 && return 1
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/emacs/emacs.darwin.zsh
-# $Date: 2011-10-22T23:07:54+0900$
+# $Date: 2012-02-22T00:45:00+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
if [ -d "/usr/local/Cellar/emacs/" ]; then
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/todo.txt/todo.txt.zsh
-# $Date: 2011-12-25T01:44:06+0900$
+# $Date: 2012-02-22T00:45:01+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
# ostype prefix
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/dircolors/dircolors.zsh
-# $Date: 2012-02-20T04:23:49+0900$
+# $Date: 2012-02-22T00:45:01+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
! which git >/dev/null 2>&1 && return 1
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/os/darwin/aquaskk.darwin.zsh
-# $Date: 2011-11-18T01:58:48+0900$
+# $Date: 2012-02-22T00:45:01+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
@@ -1,8 +1,8 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
#
# $File: ${DOTDIR}/homebrew/homebrew.darwin.zsh
-# $Date: 2011-12-04T00:50:33+0900$
+# $Date: 2012-02-22T00:45:02+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
! which brew >/dev/null 2>&1 && return 1
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/KeyRemap4MacBook/KeyRemap4MacBook.zsh
-# $Date: 2011-10-01T22:18:16+0900$
+# $Date: 2012-02-22T00:45:02+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
View
@@ -0,0 +1,19 @@
+if [[ ! -o interactive ]]; then
+ return
+fi
+
+compctl -K _rbenv rbenv
+
+_rbenv() {
+ local word words completions
+ read -cA words
+ word="${words[2]}"
+
+ if [ "${#words}" -eq 2 ]; then
+ completions="$(rbenv commands)"
+ else
+ completions="$(rbenv completions "${word}")"
+ fi
+
+ reply=("${(ps:\n:)completions}")
+}
View
@@ -1,4 +1,4 @@
-#!/usr/local/bin/zsh
+#!/bin/zsh
# http://d.hatena.ne.jp/willnet/20110612/1307849053
BUNDLED_COMMANDS=(
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/tmux/tmux.zsh
-# $Date: 2012-02-20T04:19:50+0900$
+# $Date: 2012-02-22T00:45:03+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
! which tmux >/dev/null 2>&1 && return 1
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/todo.txt/todo.txt.zsh
-# $Date: 2011-11-11T08:52:39+0900$
+# $Date: 2012-02-22T00:45:04+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
! which todo.sh >/dev/null 2>&1 && return 1
View
@@ -277,7 +277,7 @@ command! Sjis Cp932
" Keymap "{{{
" キーマップリーダー
-" let mapleader=","
+let mapleader=","
" Dvorak {{{
" SandS, <Shift>to<ESC>
@@ -371,8 +371,6 @@ nnoremap <Space>.. :<C-u>Editrc<Cr>
nnoremap <Space>.r :<C-u>Reloadrc<Cr>
" タブ
-nnoremap <Space>] gt
-nnoremap <Space>[ gT
nnoremap <Space>tt :<C-u>tabnew<CR>
nnoremap <Space>tf :<C-u>tabfirst<CR>
nnoremap <Space>tl :<C-u>tablast<CR>
@@ -423,16 +421,18 @@ cnoremap <C-n> <Down>
cnoremap <Down> <C-n>
" バッファ
-nnoremap <Leader>1 :e #1<CR>
-nnoremap <Leader>2 :e #2<CR>
-nnoremap <Leader>3 :e #3<CR>
-nnoremap <Leader>4 :e #4<CR>
-nnoremap <Leader>5 :e #5<CR>
-nnoremap <Leader>6 :e #6<CR>
-nnoremap <Leader>7 :e #7<CR>
-nnoremap <Leader>8 :e #8<CR>
-nnoremap <Leader>9 :e #9<CR>
-nmap <Leader>b :buffers<CR>
+nnoremap <Space>1 :e #1<CR>
+nnoremap <Space>2 :e #2<CR>
+nnoremap <Space>3 :e #3<CR>
+nnoremap <Space>4 :e #4<CR>
+nnoremap <Space>5 :e #5<CR>
+nnoremap <Space>6 :e #6<CR>
+nnoremap <Space>7 :e #7<CR>
+nnoremap <Space>8 :e #8<CR>
+nnoremap <Space>9 :e #9<CR>
+
+nnoremap <Space>[ :<C-u>bp<CR>
+nnoremap <Space>] :<C-u>bn<CR>
"}}}
" Filetype {{{
@@ -760,15 +760,15 @@ inoremap <expr><C-g> neocomplcache#undo_completion()
" let g:unite_enable_start_insert=1
" バッファ一覧
nnoremap <silent> <Space>ub :<C-u>Unite buffer<CR>
-nnoremap <C-p> :Unite buffer<CR>
+nnoremap <C-p> :<C-u>Unite buffer<CR>
" ファイル一覧
nnoremap <silent> <Space>uf :<C-u>UniteWithBufferDir -buffer-name=files file<CR>
-noremap <C-n> :Unite -buffer-name=file file<CR>
+noremap <C-n> :<C-u>Unite -buffer-name=file file<CR>
" レジスタ一覧
nnoremap <silent> <Space>ur :<C-u>Unite -buffer-name=register register<CR>
" 最近使用したファイル一覧
nnoremap <silent> <Space>um :<C-u>Unite file_mru<CR>
-nnoremap <C-z> :Unite file_mru<CR>
+nnoremap <C-z> :<C-u>Unite file_mru<CR>
" 常用セット
nnoremap <silent> <Space>uu :<C-u>Unite buffer file_mru<CR>
" 全部乗せ
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/vim/vim.darwin.zsh
-# $Date: 2012-02-21T23:19:49+0900$
+# $Date: 2012-02-22T00:45:04+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/vim/vim.darwin.zsh
-# $Date: 2012-02-21T23:34:58+0900$
+# $Date: 2012-02-22T00:45:04+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
# for MacVim Kaoriya
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $file: ${DOTDIR}/vim/vim.zsh
-# $date: 2012-02-21T23:24:23+0900$
+# $date: 2012-02-22T00:45:05+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
if which vim >/dev/null 2>&1 ; then
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/vimperator/vimperator.zsh
-# $Date: 2011-10-29T21:58:04+0900$
+# $Date: 2012-02-22T00:45:05+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
function vimperator-edit-rc {
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/w3m/w3m.zsh
-# $Date: 2011-11-08T08:19:21+0900$
+# $Date: 2012-02-22T00:45:05+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
! which w3m >/dev/null 2>&1 && return 1
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/.zlogin
-# $Date: 2011-12-12T17:51:11+0900$
+# $Date: 2012-02-22T00:40:23+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
# keychain init
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/.zlogout
-# $Date: 2011-12-12T17:51:24+0900$
+# $Date: 2012-02-22T00:40:24+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
zlogout_main() {
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/.zshenv
-# $Date: 2012-02-19T14:46:23+0900$
+# $Date: 2012-02-22T00:40:16+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
zshenv_main() {
View
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${DOTDIR}/.zshrc
-# $Date: 2012-02-20T17:08:21+0900$
+# $Date: 2012-02-22T00:40:24+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
zshrc_main() {
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/lib/alias.zshrc
-# $Date: 2012-02-20T18:08:35+0900$
+# $Date: 2012-02-22T00:24:58+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
alias e="$EDITOR"
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/lib/bindkey.zshrc
-# $Date: 2012-02-20T09:42:24+0900$
+# $Date: 2012-02-22T00:24:58+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
bindkey -e
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/lib/cdd.zshrc
-# $Date: 2012-02-21T17:57:03+0900$
+# $Date: 2012-02-22T00:21:23+0900$
#
# cdd
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/lib/completion.zshrc
-# $Date: 2012-02-20T17:08:03+0900$
+# $Date: 2012-02-22T00:21:45+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
WORDCHARS='*?_-.[]~=&;!#$%^(){}'
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/lib/export.darwin.zshrc
-# $Date: 2012-02-20T13:05:05+0900$
+# $Date: 2012-02-22T00:22:05+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
## android-sdk
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/lib/export.zshenv
-# $Date: 2012-02-20T13:08:12+0900$
+# $Date: 2012-02-22T00:22:27+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
# Lang
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/lib/history.zshrc
-# $Date: 2011-12-12T17:50:43+0900$
+# $Date: 2012-02-22T00:22:33+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
@@ -1,7 +1,7 @@
-#!/usr/bin/zsh
+#!/bin/zsh
#
# $File: ${ZDOTDIR}/lib/opt.zshrc
-# $Date: 2012-02-20T09:42:07+0900$
+# $Date: 2012-02-22T00:22:40+0900$
# vim:filetype=zsh:tabstop=2:shiftwidth=2:fdm=marker:
# {{{ basic
Oops, something went wrong.

0 comments on commit 4c5a111

Please sign in to comment.