# Paths export ZSH="$HOME/.oh-my-zsh" export PATH="$PATH:$HOME/.go/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools:$HOME/.emacs.d/bin" export DOTNET_CLI_TELEMETRY_OPTOUT=1 export WORKSPACE=$HOME/workspace_l export ZSHRC="$HOME/.zshrc" export VISUAL="nvim" export EDITOR="nvim" export KUBECONFIG=$HOME/.kube/config # History export HISTSIZE=50000 export SAVEHIST=50000 export HISTTIMEFORMAT="[%F %T] " setopt INC_APPEND_HISTORY setopt EXTENDED_HISTORY setopt HIST_EXPIRE_DUPS_FIRST setopt HIST_IGNORE_DUPS setopt HIST_IGNORE_ALL_DUPS setopt HIST_FIND_NO_DUPS setopt HIST_IGNORE_SPACE setopt HIST_SAVE_NO_DUPS setopt SHARE_HISTORY # Alias alias kc="kubectl" alias kns="kubens" alias q="exit" alias vim="nvim" alias cat="bat --pager=never" alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"' alias xsel='xsel -ib' alias df="df -h" alias picpaste="xclip -selection clipboard -t image/png -o" alias wttr="curl wttr.in/Essen" alias notify="dunstify \"ping~\"" alias latexmk="latexmk -f -pdf -interaction=nonstopmode" alias picotik="picocom --b 115200 /dev/ttyUSB0" alias kc="kubectl" alias nspeedl="curl -s -o /dev/null -w \"DNS Lookup: %{time_namelookup}\nTCP Connect: %{time_connect}\nTotal: %{time_total}\n\" http://www.tudattr.dev" # Theme ZSH_THEME="agnoster" # Plugins plugins=( git history z zsh-eza ) randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;}; autoload -U +X bashcompinit && bashcompinit autoload -Uz compinit && compinit # Source source $ZSH/oh-my-zsh.sh eval "$(starship init zsh)"