2019-03-11 23:59:49 +01:00
|
|
|
# Paths
|
2020-05-13 05:20:44 +02:00
|
|
|
export ZSH="$HOME/.oh-my-zsh"
|
2023-01-26 15:07:20 +01:00
|
|
|
export PATH="$PATH:$HOME/.go/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools:$HOME/.emacs.d/bin"
|
2019-12-04 01:32:36 +01:00
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
2020-09-19 13:49:26 +02:00
|
|
|
export WORKSPACE=$HOME/workspace_l
|
|
|
|
export ZSHRC="$HOME/.zshrc"
|
2024-03-07 10:26:49 +01:00
|
|
|
export VISUAL="nvim"
|
|
|
|
export EDITOR="nvim"
|
2024-07-22 18:57:25 +02:00
|
|
|
export KUBECONFIG=$HOME/.kube/config
|
2018-08-29 21:22:24 +02:00
|
|
|
|
2021-05-29 21:46:59 +02:00
|
|
|
# History
|
2024-02-15 21:19:02 +01:00
|
|
|
export HISTSIZE=50000
|
|
|
|
export SAVEHIST=50000
|
2021-05-29 21:46:59 +02:00
|
|
|
export HISTTIMEFORMAT="[%F %T] "
|
2024-02-15 21:19:02 +01:00
|
|
|
|
|
|
|
setopt INC_APPEND_HISTORY
|
2021-05-29 21:46:59 +02:00
|
|
|
setopt EXTENDED_HISTORY
|
2024-02-15 21:19:02 +01:00
|
|
|
setopt HIST_EXPIRE_DUPS_FIRST
|
|
|
|
setopt HIST_IGNORE_DUPS
|
|
|
|
setopt HIST_IGNORE_ALL_DUPS
|
2021-05-29 21:46:59 +02:00
|
|
|
setopt HIST_FIND_NO_DUPS
|
2024-02-15 21:19:02 +01:00
|
|
|
setopt HIST_IGNORE_SPACE
|
|
|
|
setopt HIST_SAVE_NO_DUPS
|
|
|
|
setopt SHARE_HISTORY
|
|
|
|
|
2018-02-08 14:55:54 +01:00
|
|
|
# Alias
|
2018-03-15 11:32:26 +01:00
|
|
|
alias q="exit"
|
2024-03-13 11:48:31 +01:00
|
|
|
alias vim="nvim"
|
|
|
|
alias cat="bat --pager=never"
|
2018-04-29 23:13:10 +02:00
|
|
|
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
|
2019-03-11 23:59:49 +01:00
|
|
|
alias xsel='xsel -ib'
|
2021-10-20 14:14:29 +02:00
|
|
|
alias df="df -h"
|
|
|
|
alias picpaste="xclip -selection clipboard -t image/png -o"
|
2022-09-07 22:00:00 +02:00
|
|
|
alias wttr="curl wttr.in/Essen"
|
2022-12-27 22:15:56 +01:00
|
|
|
alias notify="dunstify \"ping~\""
|
|
|
|
alias latexmk="latexmk -f -pdf -interaction=nonstopmode"
|
|
|
|
alias picotik="picocom --b 115200 /dev/ttyUSB0"
|
2024-07-22 18:57:25 +02:00
|
|
|
alias kc="kubectl"
|
2024-09-24 15:43:35 +02:00
|
|
|
alias nspeedl="curl -s -o /dev/null -w \"DNS Lookup: %{time_namelookup}\nTCP Connect: %{time_connect}\nTotal: %{time_total}\n\" http://www.tudattr.dev"
|
2024-07-22 18:57:25 +02:00
|
|
|
|
2018-09-12 22:42:41 +02:00
|
|
|
|
2019-03-11 23:59:49 +01:00
|
|
|
# Theme
|
|
|
|
ZSH_THEME="agnoster"
|
2018-02-08 14:55:54 +01:00
|
|
|
|
2019-03-11 23:59:49 +01:00
|
|
|
# Plugins
|
|
|
|
plugins=(
|
|
|
|
git
|
|
|
|
history
|
2021-05-29 21:46:59 +02:00
|
|
|
z
|
2024-03-17 21:17:46 +01:00
|
|
|
zsh-eza
|
2019-03-11 23:59:49 +01:00
|
|
|
)
|
2018-10-05 21:21:11 +02:00
|
|
|
|
2020-01-30 15:50:41 +01:00
|
|
|
randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;};
|
|
|
|
|
2024-03-17 21:17:46 +01:00
|
|
|
autoload -U +X bashcompinit && bashcompinit
|
2024-07-22 18:57:25 +02:00
|
|
|
autoload -Uz compinit && compinit
|
2024-02-15 21:19:02 +01:00
|
|
|
|
2024-03-17 21:17:46 +01:00
|
|
|
# Source
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
2024-07-22 18:57:25 +02:00
|
|
|
eval "$(starship init zsh)"
|
|
|
|
|
|
|
|
|