misc.zsh 480 B

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