summary refs log tree commit diff
path: root/zshrc
blob: f54f7693387de58806abcc484dcfc8c74cd02b55 (plain) (blame)
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
autoload -U compinit
compinit -C

HISTFILE=~/.zhistory
SAVEHIST=1000
setopt append_history
setopt hist_ignore_space
setopt share_history

setopt auto_menu         # show completion menu on successive tab press
setopt complete_in_word
setopt always_to_end

zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'

autoload -U select-word-style
select-word-style bash

# Print timing statistics for everything which takes longer than 5 seconds of
# user + system time ('sleep 6' does not work because of 0% user/system time!).
REPORTTIME=5

# Explicitly select Emacs line editing mode (independent of zsh’s best guess
# based on EDITOR/VISUAL).
bindkey -e

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/fcuny/workspace/google-cloud-sdk/path.zsh.inc' ]; then . '/home/fcuny/workspace/google-cloud-sdk/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/home/fcuny/workspace/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/fcuny/workspace/google-cloud-sdk/completion.zsh.inc'; fi