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:
20
zsh/.zshrc
20
zsh/.zshrc
@@ -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)"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user