config 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. if [[ -n $SSH_CONNECTION ]]; then
  2. export PS1='%m:%3~$(git_info_for_prompt)%# '
  3. else
  4. export PS1='%3~$(git_info_for_prompt)%# '
  5. fi
  6. export EDITOR='mate_wait'
  7. export PATH="$HOME/bin:$HOME/.bin:/usr/local/homebrew/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/git/bin:$PATH"
  8. export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
  9. fpath=(~/.zsh/functions $fpath)
  10. autoload -U ~/.zsh/functions/*(:t)
  11. HISTFILE=~/.zsh_history
  12. HISTSIZE=1000
  13. SAVEHIST=1000
  14. REPORTTIME=10 # print elapsed time when more than 10 seconds
  15. setopt NO_BG_NICE # don't nice background tasks
  16. setopt NO_HUP
  17. setopt NO_LIST_BEEP
  18. setopt LOCAL_OPTIONS # allow functions to have local options
  19. setopt LOCAL_TRAPS # allow functions to have local traps
  20. setopt HIST_VERIFY
  21. setopt SHARE_HISTORY # share history between sessions ???
  22. setopt EXTENDED_HISTORY # add timestamps to history
  23. setopt PROMPT_SUBST
  24. setopt CORRECT
  25. setopt COMPLETE_IN_WORD
  26. setopt IGNORE_EOF
  27. setopt APPEND_HISTORY # adds history
  28. setopt INC_APPEND_HISTORY SHARE_HISTORY # adds history incrementally and share it across sessions
  29. setopt HIST_IGNORE_ALL_DUPS # don't record dupes in history
  30. setopt HIST_REDUCE_BLANKS
  31. zle -N newtab
  32. bindkey '^[^[[D' backward-word
  33. bindkey '^[^[[C' forward-word
  34. bindkey '^[[5D' beginning-of-line
  35. bindkey '^[[5C' end-of-line
  36. bindkey '^[[3~' delete-char
  37. bindkey '^[^N' newtab
  38. bindkey '^?' backward-delete-char