85 lines
2.1 KiB
Bash
85 lines
2.1 KiB
Bash
# vim: ft=zsh
|
|
# History settings
|
|
HISTFILE=~/.histfile
|
|
HISTSIZE=40000
|
|
SAVEHIST=40000
|
|
setopt HIST_IGNORE_DUPS
|
|
|
|
# Misc options
|
|
setopt autocd extendedglob notify
|
|
# setopt SOURCE_TRACE
|
|
unsetopt beep nomatch
|
|
bindkey -v
|
|
|
|
source ~/.local/share/antigen.zsh
|
|
export DEFAULT_USER="pavle"
|
|
|
|
# Load the oh-my-zsh's library.
|
|
antigen use oh-my-zsh
|
|
|
|
# Load plugins from oh-my-zsh
|
|
antigen bundle archlinux
|
|
antigen bundle aws
|
|
antigen bundle colored-man-pages
|
|
antigen bundle colorize
|
|
antigen bundle common-aliases
|
|
antigen bundle copybuffer
|
|
antigen bundle docker
|
|
antigen bundle docker-compose
|
|
antigen bundle extract
|
|
antigen bundle git
|
|
|
|
# Additional antigen plugins
|
|
antigen bundle zsh-users/zsh-autosuggestions
|
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
|
antigen bundle MichaelAquilina/zsh-you-should-use
|
|
antigen bundle zsh-users/zsh-completions
|
|
|
|
# Load theme
|
|
antigen theme https://gitlab.theedgeofrage.com/TheEdgeOfRage/boban-zsh.git
|
|
antigen apply
|
|
|
|
# Completion options
|
|
zstyle :compinstall filename '$HOME/.zshrc'
|
|
zstyle ':completion:*' menu select
|
|
fpath=(~/.config/zsh/completions ~/.config/zsh/functions $fpath)
|
|
autoload -Uz compinit && compinit
|
|
autoload -Uz ~/.config/zsh/functions/*
|
|
|
|
source ~/.aliases
|
|
|
|
# Variable exports
|
|
export PATH="$HOME/.local/bin:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"
|
|
export VISUAL="nvim"
|
|
export EDITOR="nvim"
|
|
export BROWSER='firefox'
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
export MAKEFLAGS="-j $(nproc --all)"
|
|
export GPG_TTY=$(tty)
|
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
export LC_ALL="en_DK.UTF-8"
|
|
|
|
# Valve shader compiler
|
|
export RADV_PERFTEST="aco"
|
|
|
|
# Bind home and end
|
|
bindkey "\033[H" beginning-of-line
|
|
bindkey "\033[F" end-of-line
|
|
|
|
# zle -N zle-line-init
|
|
TRAPWINCH() {
|
|
zle && { zle reset-prompt; zle -R }
|
|
}
|
|
|
|
# Load fzf
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow -g "!{.git,node_modules,__pycache__}/*" 2> /dev/null'
|
|
export FZF_DEFAULT_OPTS='
|
|
--color fg:#928374,bg:#282828,hl:#fb4934
|
|
--color fg+:#b8bb26,bg+:#3c3836,hl+:#fb4934
|
|
--color info:#fe8019,prompt:#83a598,header:#83a598
|
|
--color pointer:#fb4934,marker:#fb4934,spinner:#ffff60
|
|
'
|
|
|
|
source ~/.local/bin/start-ssh-agent
|