From 219da943b92734e4ddc817f85e102566b4c420a3 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Tue, 7 May 2024 13:46:15 +0200 Subject: [PATCH] fix(user/shell/zsh): update zshrc Signed-off-by: Matej Focko --- roles/user/shell/zsh/files/zshrc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/roles/user/shell/zsh/files/zshrc b/roles/user/shell/zsh/files/zshrc index 66fe13f..872f563 100644 --- a/roles/user/shell/zsh/files/zshrc +++ b/roles/user/shell/zsh/files/zshrc @@ -1,15 +1,14 @@ export ZSH="/home/mfocko/.oh-my-zsh" ENABLE_CORRECTION=true -plugins=(git common-aliases history systemd sudo zsh-autosuggestions zsh-syntax-highlighting zsh-aliases-exa fzf direnv taskwarrior autojump) +plugins=(git common-aliases history systemd sudo zsh-autosuggestions zsh-syntax-highlighting eza fzf direnv taskwarrior zoxide) source $ZSH/oh-my-zsh.sh ### add .local/bin to PATH ### -export GOPATH=$HOME/.go -export PATH=$HOME/.go/bin:$HOME/.npm/bin:$HOME/.emacs.d/bin:$HOME/.local/bin:$PATH +export PATH=$HOME/.npm/bin:$HOME/.emacs.d/bin:$HOME/.local/bin:$PATH ### zsh autosuggestions color ### -ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8,bold,underline" +ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8,underline,standout" ### Ruby gems ### if which ruby >/dev/null && which gem >/dev/null; then @@ -25,7 +24,8 @@ alias kittyconf="$EDITOR ~/.config/kitty/kitty.conf" ### git aliases ### export GIT_EDITOR=$EDITOR -alias gcs="git commit -v -s" +alias gcs="git commit --gpg-sign --signoff --verbose" +alias gcsp="git commit --gpg-sign --signoff --verbose --patch" ### tokens ### source ~/.tokens @@ -54,6 +54,7 @@ export PATH=~/.cargo/bin:$PATH # [[ -s "/opt/cargo/env" ]] && source /opt/cargo/env ### Go ### +export GOPATH=$HOME/.go export PATH="$HOME/.go/bin:$PATH" ### SDKMan ### @@ -171,11 +172,19 @@ export PATH="/opt/jdk-18/bin:$PATH" # tmux new -s # fi; +### Bat ### +export BAT_THEME=Dracula + ### sprunge ### function sprunge_paste() { echo "Paste your code: " cat - | curl -F 'sprunge=<-' http://sprunge.us } +### rg wrapper with delta ### +function rgd() { + rg -C2 --json $@ | delta +} + ### Starship ### eval "$(starship init zsh)"