-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
85 lines (61 loc) · 2.08 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
73
74
75
76
77
78
79
80
81
82
83
84
85
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export GPG_TTY=$(tty)
# if type brew &>/dev/null; then
# FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
# fi
alias backup_gpg="(umask 077 && tar -caf $HOME/gnupg-backup_`date +%Y%m%d_%H%M%S`.tar.xz -C $HOME .gnupg)"
if [[ -d ~/.local/bin ]]; then
export PATH="$PATH:$HOME/.local/bin"
fi
export HISTSIZE=10000
export HISTFILE=~/.zsh_history
source ~/.aliases
export PATH="$PATH:/home/iago/Development/kotlin-language-server/server/build/install/server/bin:/home/iago/.cargo/bin"
# source /usr/local/share/zsh/site-functions/key-bindings.zsh
function break_your_neck() {
sudo sysctl -w kern.maxfiles=10485760
sudo sysctl -w kern.maxfilesperproc=1048576
}
alias explode_ios=break_your_neck
# Enable selected completion to be highlighted
zstyle ':completion:*:*:*:*:*' menu select
h=($h ${${${(@M)${(f)"$(cat ~/.ssh/config)"}:#Host *}#Host }:#*[*?]*})
if [[ $#h -gt 0 ]]; then
zstyle ':completion:*:ssh:*' hosts $h
zstyle ':completion:*:slogin:*' hosts $h
fi
autoload -Uz compinit && compinit -i
sconnect() {
ssh "$@"
}
reload() {
unfunction _sconnect
autoload -U _sconnect
}
source ~/.zplug/init.zsh
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "zsh-users/zsh-autosuggestions"
zplug "stedolan/jq", \
from:gh-r, \
as:command, \
rename-to:jq
zplug "b4b4r07/emoji-cli", \
on:"stedolan/jq"
zplug "lukechilds/zsh-nvm"
zplug romkatv/powerlevel10k, as:theme, depth:1
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
gpgconf --launch gpg-agent
bindkey -e
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh