aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--[l---------].zshrc75
1 files changed, 74 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 2045f57..a3ebfd4 120000..100644
--- a/.zshrc
+++ b/.zshrc
@@ -1 +1,74 @@
-/home/spelis/.zshrc \ No newline at end of file
+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