-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
49 lines (35 loc) · 1.13 KB
/
zshrc
File metadata and controls
49 lines (35 loc) · 1.13 KB
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
# oh-my-zsh path
export ZSH="$HOME/.oh-my-zsh"
# oh-my-zsh theme
export ZSH_THEME="robbyrussell"
# Display dots whilst waiting for completion
COMPLETION_WAITING_DOTS="true"
# oh-my-zsh plugins
plugins=(git vi-mode xcode tmux common-aliases brew)
# enable oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Language environment
export LANG=en_US.UTF-8
# Syntax highlighting
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Auto suggetions
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# vi-mode
bindkey -v
# Eliminate delay on <esc>
export KEYTIMEOUT=1
# Use the vi navigation keys besides cursor keys is menu completion
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history
# Use Shift-Tab to move through the completion menu backwards
bindkey '^[[Z' reverse-menu-complete
# Use C-] to confirm suggestion
bindkey "^]" end-of-line
# Fzf utils
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Automatically attach to default tmux session
if [ -z "$TMUX" ]; then
daniel
fi