blob: a3ebfd4d51b19f7c62908fc5b4c421ff6b97ab0e (
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
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
|
typeset -g ZSHRC_START=$(date +%s%3N)
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
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
fastfetch
setopt interactivecomments
eval `ssh-agent`
export PATH="$PATH:/home/spelis/.local/bin"
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
export DEBUGINFOD_URLS="https://debuginfod.archlinux.org"
export SUDO_EDITOR="nvim"
export EDITOR="nvim"
autoload add-zsh-hook
bindkey -e
export PATH=$PATH:/home/elis/.local/bin
alias \
yoink='yay -S' \
yeet='yay -R' \
x='exit' \
cls='clear' \
ls='eza -lh --group-directories-first --color=always --git --icons=auto' \
tree='ls -T' \
sudo='sudo -E' \
cd='z'
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' verbose yes
source <(fzf --zsh)
# setopt extendedglob
# source "$HOME/.sdkman/bin/sdkman-init.sh"
eval "$(zoxide init zsh)"
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
zstyle ':completion:*' completer _complete _ignored _approximate _list _match _prefix
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'm:{A-Z}={a-z}'
zstyle ':completion:*' max-errors 3 prompt 'Errors: %e'
zstyle ':completion:*' menu select=long-list select
zstyle ':completion:*' use-cache on cache-path ~/.zsh/cache
zstyle ':completion:*' auto-description 'specify: %d' verbose yes accept-exact '*(N)'
mkcd() {
mkdir -p "$1" && cd "$1"
}
function command_title() {
printf '\033]0;%s\007' "$1"
}
add-zsh-hook preexec command_title
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
typeset -g ZSHRC_END=$(date +%s%3N)
echo ".zshrc load time: $((ZSHRC_END - ZSHRC_START)) ms"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|