ハマった時は # init 0

試したことを書き綴ってます

bashrcとvimrc

いつも忘れて調べるので、自分用メモ・・・

bashrc

export PS_FORMAT="pid,tty,user,stat,time,args"
export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\] [\t]\$ "

#SOCKDIR=`/bin/ls -ld /tmp/ssh-*  | grep $USER | awk '{ print $9 }'`
#SSH_AUTH_SOCK=`/bin/ls ${SOCKDIR}/agent*`
#SSH_AGENT_PID=`/bin/ps x -U $USER -u $USER | grep ssh-agent | grep -v "grep" | awk '{ print $1 }'`
#export SSH_AUTH_SOCK;
#export SSH_AGENT_PID;

ulimit -S -c unlimited

vimrc

colorschem evening
set number
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set laststatus=2
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
set fileencodings=utf-8,iso-2022-jp,euc-jp
set backupdir=~/tmp/vimbackup
set tags+=tags;
set tags+=./**/tags
set fo=oql
":e ++enc=iso-2022-jp
""set fo-=ro
"set formatoptions=cql
""set autoindent
"
""" binary mode
augroup Binary
        au!
        au BufReadPre  *.bin let &bin=1
        au BufReadPost *.bin if &bin | %!xxd
        au BufReadPost *.bin set ft=xxd | endif
        au BufWritePre *.bin if &bin | %!xxd -r
        au BufWritePre *.bin endif
        au BufWritePost *.bin if &bin | %!xxd
        au BufWritePost *.bin set nomod | endif
augroup END