-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
69 lines (56 loc) · 1.48 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
# source dotfiles
export DOTFILES=$HOME/.dotfiles
if test -f "$DOTFILES/secrets.zsh"; then
else
touch secrets.zsh
fi
dotfiles=(
paths.zsh
environment.zsh
aliases.zsh
functions.zsh
secrets.zsh
theme.zsh
hooks.zsh
)
for dotfile in ${dotfiles[@]}; do source $DOTFILES/$dotfile ; done
# zsh settings
export HISTFILE=$HOME/.zsh_history
export HISTFILESIZE=1000000000
export HISTSIZE=1000000000
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
plugins=(
z
zsh-autosuggestions
)
# https://github.com/zsh-users/zsh-autosuggestions
source $ZSH/oh-my-zsh.sh
# fix fo for scripts that echo new lines and suddenly see '-'
PROMPT_EOL_MARK=''
# some shit I have to google
autoload -U +X bashcompinit && bashcompinit
# terraform completion
# complete -o nospace -C /usr/local/bin/terraform terraform
# some shit I have to google
autoload compinit
compinit
zstyle ':completion:*' menu select=3
# source 1password
source $HOME/.config/op/plugins.sh
# iterm integration
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# artisan autocomplete
_artisan()
{
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
COMMANDS=`php artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"`
COMPREPLY=(`compgen -W "$COMMANDS" -- "${COMP_WORDS[COMP_CWORD]}"`)
return 0
}
complete -F _artisan -o nospace art
complete -F _artisan -o nospace artisan
# start up check on xdebug, cause it makes php slow when not needed
# xdebug-toggle