zshrc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Path to your oh-my-zsh configuration.
  2. ZSH=$HOME/dotfiles/zsh/oh-my-zsh
  3. ZSH_CUSTOM=$HOME/dotfiles/zsh/oh-my-zsh-custom
  4. # Set name of the theme to load.
  5. # Look in ~/.oh-my-zsh/themes/
  6. # Optionally, if you set this to "random", it'll load a random theme each
  7. # time that oh-my-zsh is loaded.
  8. ZSH_THEME="cinaeco"
  9. # Example aliases
  10. # alias zshconfig="mate ~/.zshrc"
  11. # alias ohmyzsh="mate ~/.oh-my-zsh"
  12. # Set to this to use case-sensitive completion
  13. # CASE_SENSITIVE="true"
  14. # Comment this out to disable weekly auto-update checks
  15. DISABLE_AUTO_UPDATE="true"
  16. # Uncomment following line if you want to disable colors in ls
  17. # DISABLE_LS_COLORS="true"
  18. # Uncomment following line if you want to disable autosetting terminal title.
  19. DISABLE_AUTO_TITLE="true"
  20. # Uncomment following line if you want red dots to be displayed while waiting for completion
  21. # COMPLETION_WAITING_DOTS="true"
  22. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  23. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  24. # Example format: plugins=(rails git textmate ruby lighthouse)
  25. plugins=(git vi-mode)
  26. source $ZSH/oh-my-zsh.sh
  27. # Customize to your needs...
  28. ## hosts file
  29. alias hosts='sudo vim /etc/hosts'
  30. ## history
  31. alias h='history'
  32. ## don't show expansions, just execute, e.g. for !! and !$
  33. setopt nohistverify
  34. ## don't have the same history across tabs/windows
  35. setopt nosharehistory
  36. ## typos
  37. alias scren='screen'
  38. ## folder listing/traversal
  39. alias l='ls'
  40. alias ll='ls -hl'
  41. alias la='ls -A'
  42. alias lal="ls -Ahl"
  43. alias cd..='cd ..';
  44. alias ..='cd ..'
  45. alias -g ...="../.."
  46. alias -g ....="../../.."
  47. alias -g .....="../../../.."
  48. ## file manipulation
  49. alias mkdir='nocorrect mkdir'
  50. alias mv='nocorrect mv'
  51. alias cp='nocorrect cp'
  52. alias touch='nocorrect touch'
  53. alias ln='nocorrect ln'
  54. ## include settings specific to this machine
  55. if [[ -r ~/.zshlocal ]]; then
  56. source ~/.zshlocal
  57. fi