- Timestamp:
- 06/29/08 12:25:44 (5 months ago)
- Files:
-
- 1 modified
-
dotfiles/zsh/cho45/.zshrc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/zsh/cho45/.zshrc
r14517 r14820 134 134 alias g='git' 135 135 136 alias rm='rm -i'136 #alias rm='rm -i' 137 137 alias mvi='mv -i' 138 138 alias cpi='cp -i' … … 152 152 153 153 alias :q=exit 154 alias reload='exec zsh' 155 156 function rm () { 157 command /bin/mv $* ~/.Trash/ 158 } 154 159 155 160 # for screen 156 preexec () {161 preexec () { 157 162 # see [zsh-workers:13180] 158 163 # http://www.zsh.org/mla/workers/2000/msg03993.html … … 196 201 } 197 202 198 precmd () {203 precmd () { 199 204 echo -n "k:$prev\\" 200 205 if [ "$prev" = "git" ]; then … … 256 261 "L" "| $PAGER" 257 262 "G" "| grep" 258 "CC" "lib/*/Controller" # Catalyst Controller 259 "CS" "lib/*/Schema" # Catalyst Schema 263 "CC" "lib/*/Controller/" # Catalyst Controller 264 "CS" "lib/*/Schema/" # Catalyst Schema 265 "CI" "lib/*/I18N/" # Catalyst I18N 266 "CV" "lib/*/View/" # Catalyst View 267 "CM" "lib/*/Model/" # Catalyst Model 260 268 261 269 "HEAD^" "HEAD\\^" … … 287 295 } 288 296 297 magic-abbrev-expand-and-normal-complete () { 298 magic-abbrev-expand 299 zle expand-or-complete 300 } 301 289 302 no-magic-abbrev-expand () { 290 303 LBUFFER+=' ' … … 294 307 zle -N magic-abbrev-expand-and-insert 295 308 zle -N magic-abbrev-expand-and-insert-complete 309 zle -N magic-abbrev-expand-and-normal-complete 296 310 zle -N magic-abbrev-expand-and-accept 297 311 zle -N no-magic-abbrev-expand … … 301 315 bindkey "." magic-abbrev-expand-and-insert 302 316 bindkey "^x " no-magic-abbrev-expand 317 bindkey "^I" magic-abbrev-expand-and-normal-complete 303 318 304 319 source $HOME/coderepos/lang/zsh/cdd/cdd … … 310 325 screen -X eval "chdir $PWD" "screen" "chdir" 311 326 } 327 328 # http://subtech.g.hatena.ne.jp/secondlife/20080604/1212562182 329 function cdf () { 330 local -a tmpparent; tmpparent="" 331 local -a filename; filename="${1}" 332 local -a file 333 local -a num; num=0 334 while [ $num -le 10 ]; do 335 tmpparent="${tmpparent}../" 336 file="${tmpparent}${filename}" 337 if [ -f "${file}" ] || [ -d "${file}" ]; then 338 cd ${tmpparent} 339 break 340 fi 341 num=$(($num + 1)) 342 done 343 } 344 345 function cdrake () { 346 cdf "Rakefile" 347 } 348 349 function cdcat () { 350 cdf "Makefile.PL" 351 } 352
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)