CentOS5.5 64bitのFirefoxでFlashとJava appletを使う
bashの補完機能をパワーアップ その2(コマンド履歴を検索できるようにしとけ)
$ vim ~/.inputrc 以下を追加 "\C-n":history-search-forward "\C-p":history-search-backward
途中までコマンド入力して、Ctl+pやCtl+nを入力すると、コマンド履歴が補完されるよ。
Ctl+rもあるけど、後ろに戻りすぎたら、前に戻れないし。
便利や〜。
snow leopardでgoogle chrome4.0を動かしてみた
公式サイトを参考に、snow leopardでgoogle chrome4.0を動かしてみました。
只々、ビルドに時間がかかりました。
初代Macbook Airで、一時間くらい。
CoolBookController、smcFanControlを動かしてて、途中パソコン落ちたりしましたが...
無事、動きましたよ!
.vimrcメモ
set nocompatible " encode set encoding=utf-8 set fileencodings=utf-8,iso-2022-jp,sjis,euc-jp " menu set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P "set wildmenu set wildmode=list:longest " display set number syntax on filetype on set laststatus=2 set cmdheight=2 set showcmd set wrap " search set history=100 set incsearch set ignorecase set smartcase set showmatch set hlsearch " tab set expandtab set shiftwidth=4 set softtabstop=4 set tabstop=4 set noautoindent " color if &t_Co > 1 " set t_Co=256 colorscheme delek highlight Search cterm=none ctermfg=0 endif " backup set nobackup "set writebackup "set backup "set backupdir=~/backup "set directory=~/swap " python develop setting function PythonDev() set filetype=python nmap <F5> :!/usr/bin/python %<CR> nmap <F12> :!/usr/lib/python2.4/pdb.py %<CR> endfunction autocmd BufRead,BufNewFile *.py :call PythonDev() " php develop setting function PHPDev() set filetype=php nmap <F4> !ctags -f %:p:h/tags --langmap="php:+.inc" -h ".php.inc" -R --totals=yes --tag-relative=yes --PHP-kinds=+cf-v %:p:h<CR> nmap <F5> :!/usr/bin/php %<CR> nmap <F12> :!/usr/bin/php -l %<CR> endfunction "autocmd BufRead,BufNewFile *.php :call PHPDev() autocmd BufRead,BufNewFile *.inc,*.view,*.edit,*.check,*.wui,*.mod,*.conf,*.cnf :call PHPDev() "for HDE " php develop setting function KaresansuiDev() set filetype=html endfunction autocmd BufRead,BufNewFile *.part,*.input :call KaresansuiDev() "for HDE " buffer nmap <C-P> :bprevious<CR> nmap <C-N> :bnext<CR> nmap bb :ls<CR>:buf " complete function TabOrComplete() let col = col('.')-1 if !col || getline('.')[col-1] !~ '\k' return "\<Tab>" else return "\<C-X>\<C-N>" endif endfunction imap <silent> <Tab> <C-R>=TabOrComplete()<CR> " omni complete autocmd FileType php set omnifunc=phpcomplete#CompletePHP autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS autocmd FileType html set omnifunc=htmlcomplete#CompleteTags autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags autocmd FileType python set omnifunc=pythoncomplete#Complete autocmd FileType c set omnifunc=ccomplete#Complete " multi byte if exists('&ambiwidth') set ambiwidth=double endif " highlight highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=darkgray match ZenkakuSpace / / autocmd WinEnter * match ZenkakuSpace / / set list set listchars=tab:\ \ ,trail:\ highlight SpecialKey cterm=underline ctermfg=lightblue guibg=darkgray " ctags set tags=./tags set tags+=tags; set tags+=./**/tags " fold set foldcolumn=4 set foldmethod=indent set foldlevel=100 "Don't autofold anything
.zshrcメモ
# for screen function ssh_screen(){ eval server=\${$#} screen -t $server ssh "$@" } if [ x"$TERM" = x"screen" ]; then compctl -k _cache_hosts ssh_screen alias ssh=ssh_screen chpwd () { echo -n "`dirs`\" } preexec() { # see [zsh-workers:13180] # http://www.zsh.org/mla/workers/2000/msg03993.html emulate -L zsh local -a cmd; cmd=(${(z)2}) case $cmd[1] in fg) if (( $#cmd == 1 )); then cmd=(builtin jobs -l %+) else cmd=(builtin jobs -l $cmd[2]) fi ;; %*) cmd=(builtin jobs -l $cmd[1]) ;; cd) if (( $#cmd == 2)); then cmd[1]=$cmd[2] fi ;& *) echo -n "$cmd[1]:t\" return ;; esac local -A jt; jt=(${(kv)jobtexts}) $cmd >>(read num rest cmd=(${(z)${(e):-\$jt$num}}) echo -n "^[k$cmd[1]:t^[\\") 2>/dev/null } chpwd fi # complete autoload -U compinit compinit # prompt autoload colors colors PROMPT="[%n@%m %*]$ " SPROMPT="%{${fg[red]}%}%r%{${reset_color}%} is correct? [n,y,a,e]:% " RPROMPT="[%{${fg[red]}%}%~%{${reset_color}%}]" # language export LANG=ja_JP.UFT-8 # history HISTFILE=~/.zsh_history HISTSIZE=10000 SAVEHIST=10000 setopt hist_ignore_dups # ignore duplication command history setopt share_history # share command history data # history search autoload history-search-end zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end bindkey "^P" history-beginning-search-backward-end bindkey "^N" history-beginning-search-forward-end # not KY function setopt auto_cd setopt auto_pushd setopt correct setopt list_packed setopt nolistbeep #setopt multios setopt noautoremoveslash #autoload predict-on #predict-on # ls export LSCOLORS=exfxcxdxbxegedabagacad export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30' case "${OSTYPE}" in freebsd*|darwin*) alias ls="ls -G -w" ;; linux*) alias ls="ls --color" ;; esac zstyle ':completion:*' list-colors 'di=34' 'ln=35' 'so=32' 'ex=31' 'bd=46;34' 'cd=43;34' # alias setopt complete_aliases # aliased ls needs if file/dir completions work alias where="command -v" alias jobs="jobs -l" alias la="ls -a" alias lf="ls -F" alias ll="ls -l" alias du="du -h" alias df="df -h" alias su="su -l" # personal settings [ -f ~/.zshrc.mine ] && source ~/.zshrc.mine