-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
72 lines (56 loc) · 1.44 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
71
72
# ディレクトリ名の補完で末尾の / を自動的に付加し、次の補完に備える
setopt auto_param_slash
# 最後がディレクトリ名で終わっている場合末尾の / を自動的に取り除く
#setopt auto_remove_slash
# command correct edition before each completion attempt
#
setopt correct
# compacked complete list display
#
setopt list_packed
# no remove postfix slash of command line
#
setopt noautoremoveslash
# no beep sound when complete list displayed
#
setopt nolistbeep
## Keybind configuration
#
# emacs like keybind (e.x. Ctrl-a goes to head of a line and Ctrl-e goes
# to end of it)
#
bindkey -e
## Command history configuration
#
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data
## Completion configuration
#
autoload -U compinit
compinit
## Alias configuration
#
# expand aliases before completing
#
alias ls='ls --color=auto'
setopt complete_aliases # aliased ls needs if file/dir completions work
function gcd () {
cd $(ghq list -p | peco --query "$LBUFFER")
}
# for rbenv
eval "$(rbenv init -)"
# for nodenv
export PATH=$HOME/.nodenv/bin:$PATH
eval "$(nodenv init -)"
# for yarn
export PATH="$PATH:`yarn global bin`"
# for topydo
alias t="topydo"
alias tx="t ls -x"
# vimで使いたいだけなので
# [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# starship
eval "$(starship init zsh)"