.zshrc (3820B)
1 # If you come from bash you might have to change your $PATH. 2 # export PATH=$HOME/bin:/usr/local/bin:$PATH 3 4 # Path to your oh-my-zsh installation. 5 export ZSH="${XDG_CONFIG_HOME:-$HOME/.config}/oh-my-zsh" 6 7 # Set name of the theme to load. Optionally, if you set this to "random" 8 # it'll load a random theme each time that oh-my-zsh is loaded. 9 # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes 10 ZSH_THEME="agnoster" 11 12 # Set list of themes to load 13 # Setting this variable when ZSH_THEME=random 14 # cause zsh load theme from this variable instead of 15 # looking in ~/.oh-my-zsh/themes/ 16 # An empty array have no effect 17 # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) 18 19 # Uncomment the following line to use case-sensitive completion. 20 CASE_SENSITIVE="true" 21 22 # Uncomment the following line to use hyphen-insensitive completion. Case 23 # sensitive completion must be off. _ and - will be interchangeable. 24 # HYPHEN_INSENSITIVE="true" 25 26 # Uncomment the following line to disable bi-weekly auto-update checks. 27 # DISABLE_AUTO_UPDATE="true" 28 29 # Uncomment the following line to change how often to auto-update (in days). 30 # export UPDATE_ZSH_DAYS=13 31 32 # Uncomment the following line to disable colors in ls. 33 # DISABLE_LS_COLORS="true" 34 35 # Uncomment the following line to disable auto-setting terminal title. 36 # DISABLE_AUTO_TITLE="true" 37 38 # Uncomment the following line to enable command auto-correction. 39 ENABLE_CORRECTION="true" 40 41 # Uncomment the following line to display red dots whilst waiting for completion. 42 COMPLETION_WAITING_DOTS="true" 43 44 # Uncomment the following line if you want to disable marking untracked files 45 # under VCS as dirty. This makes repository status check for large repositories 46 # much, much faster. 47 # DISABLE_UNTRACKED_FILES_DIRTY="true" 48 49 # Uncomment the following line if you want to change the command execution time 50 # stamp shown in the history command output. 51 # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 52 # HIST_STAMPS="mm/dd/yyyy" 53 54 # Would you like to use another custom folder than $ZSH/custom? 55 # ZSH_CUSTOM=/path/to/new-custom-folder 56 57 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) 58 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 59 # Example format: plugins=(rails git textmate ruby lighthouse) 60 # Add wisely, as too many plugins slow down shell startup. 61 plugins=( 62 git 63 zsh-autosuggestions 64 ) 65 66 source $ZSH/oh-my-zsh.sh 67 68 # User configuration 69 HISTSIZE=1000 70 SAVEHIST=1000 71 72 # export MANPATH="/usr/local/man:$MANPATH" 73 74 # You may need to manually set your language environment 75 # export LANG=en_US.UTF-8 76 77 # Preferred editor for local and remote sessions 78 # if [[ -n $SSH_CONNECTION ]]; then 79 # export EDITOR='vim' 80 # else 81 # export EDITOR='mvim' 82 # fi 83 84 # Compilation flags 85 # export ARCHFLAGS="-arch x86_64" 86 87 # ssh 88 # export SSH_KEY_PATH="~/.ssh/rsa_id" 89 90 # Set personal aliases, overriding those provided by oh-my-zsh libs, 91 # plugins, and themes. Aliases can be placed here, though oh-my-zsh 92 # users are encouraged to define aliases within the ZSH_CUSTOM folder. 93 # For a full list of active aliases, run `alias`. 94 # 95 # Example aliases 96 [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" 97 98 bindkey "${terminfo[kdch1]}" delete-char 99 bindkey "${terminfo[khome]}" beginning-of-line 100 bindkey "${terminfo[kend]}" end-of-line 101 bindkey "${terminfo[kpp]}" up-line-or-history 102 bindkey "${terminfo[knp]}" down-line-or-history 103 104 # Setting environment variables 105 export MPW_FULLNAME="Matt Fehrenbach" 106 export MPW_ALGORITHM="3" 107 export MPW_FORMAT="n" 108 109 110 # prevents mpw commands from being added to history 111 function zshaddhistory() { 112 emulate -L zsh 113 if [[ $1 = *"mpw"* ]] ; then 114 return 1 115 fi 116 } 117 118 autoload -U compinit 119 compinit -d "${XDG_CACHE_HOME:-$HOME/.cache}/zcompdump"