forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
62 lines (51 loc) · 1.58 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
# zmodload zsh/zprof
# Add `~/bin` and other bin folder to the `$PATH`
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export PATH="$HOME/bin:$PATH"
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don�t want to commit.
for file in ~/.{path,node,php,exports,aliases,functions,extra}; do
[ -r "$file" ] && source "$file"
done
unset file
# Set/unset shell options
# setopt nocdablevars
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
export DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git ruby zsh-syntax-highlighting bundler)
# remove safe-paste
# gem rails bundler git-flow-completion
plugins=(
brew
docker-machine
env
git
history-substring-search
last-working-dir
npm
npx
rand-quote
zsh-syntax-highlighting
)
# zsh-autosuggestions
source $ZSH/oh-my-zsh.sh
# jump to any project in workspace from anywhere
# this alias need to be run after oh-my-zsh setup
go() { cd ~/workspace/$1; }
_go() { _files -W ~/workspace -/; }
compinit
compdef _go go
# make beginning and end of line still works with safe-paste
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
# Include stuff that should only be on this
if [[ -r ~/.zshrc_local ]]; then
source ~/.zshrc_local
fi
# zprof