misc.zsh 641 B

12345678910111213141516171819202122232425262728293031323334
  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. if which ack-grep > /dev/null;
  18. then
  19. alias afind='ack-grep -il'
  20. else
  21. alias afind='ack -il'
  22. fi
  23. # only define LC_CTYPE if undefined
  24. if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
  25. export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
  26. fi
  27. # recognize comments
  28. setopt interactivecomments