misc.zsh 571 B

1234567891011121314151617181920212223242526272829
  1. ## Load smart urls if available
  2. for d in $fpath; do
  3. if [[ -e "$d/url-quote-magic" ]]; then
  4. autoload -U url-quote-magic
  5. zle -N self-insert url-quote-magic
  6. fi
  7. done
  8. ## jobs
  9. setopt long_list_jobs
  10. ## pager
  11. export PAGER="less"
  12. export LESS="-R"
  13. ## super user alias
  14. alias _='sudo'
  15. alias please='sudo'
  16. ## more intelligent acking for ubuntu users
  17. alias afind='ack-grep -il'
  18. # only define LC_CTYPE if undefined
  19. if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
  20. export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
  21. fi
  22. # recognize comments
  23. setopt interactivecomments