forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
70 lines (48 loc) · 2.72 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
source "$HOME/.dotfiles/path.zsh"
source "$HOME/.dotfiles/aliases.zsh"
# Path to your oh-my-zsh installation.
export ZSH="/Users/$(whoami)/.oh-my-zsh"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel9k/powerlevel9k"
DISABLE_AUTO_UPDATE="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(npm, git, history, git flow, github, brew, bundler, osx, textmate, sublime, tmux, tmuxinator, z, autojump, cp, symfony2, composer, laravel, zsh-autosuggestions, zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# User configuration
export DEFAULT_USER="$(whoami)"
export EDITOR=/usr/bin/vim
source "$HOME/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
source /usr/local/opt/powerlevel9k/powerlevel9k.zsh-theme
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status history time nvm rvm background_jobs ip ram battery)
precmd() { print "" }
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
performance() {
curl -w "@curl-format.txt" -o /dev/null -s "$1"
}
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
[[ -s "$HOME/.autojump/etc/profile.d/autojump.sh" ]] && source "$HOME/.autojump/etc/profile.d/autojump.sh"
autoload -U compinit && compinit -u
for each in ~/.dotfiles.d/*.sh ; do source $each ; done
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/ivovanbeek/google-cloud-sdk/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/ivovanbeek/google-cloud-sdk/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/ivovanbeek/google-cloud-sdk/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/ivovanbeek/google-cloud-sdk/google-cloud-sdk/completion.zsh.inc'; fi
export PATH="/usr/local/opt/node@10/bin:$PATH"