Added nvim spell checks, some ssh config for work, xrandr settings for monitor switching, kubernetes alias and starship

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-07-22 18:57:25 +02:00
parent 40d2d85ecb
commit 767910406f
15 changed files with 295 additions and 200 deletions

View File

@@ -6,7 +6,7 @@ export WORKSPACE=$HOME/workspace_l
export ZSHRC="$HOME/.zshrc"
export VISUAL="nvim"
export EDITOR="nvim"
export KUBECONFIG=$HOME/.kube/config
# History
export HISTSIZE=50000
@@ -53,6 +53,8 @@ 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"
# Theme
ZSH_THEME="agnoster"
@@ -68,18 +70,10 @@ plugins=(
randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;};
autoload -U +X bashcompinit && bashcompinit
if [[ -z "$ZELLIJ" ]]; then
if [[ "$ZELLIJ_AUTO_ATTACH" == "true" ]]; then
zellij attach -c
else
zellij
fi
if [[ "$ZELLIJ_AUTO_EXIT" == "true" ]]; then
exit
fi
fi
autoload -Uz compinit && compinit
# Source
source $ZSH/oh-my-zsh.sh
eval "$(starship init zsh)"