From 82403e402f1135c8a4fb2ff480d49868bf40bdaf Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Fri, 18 Aug 2023 19:26:07 +0200 Subject: [PATCH] Zsh: More aliases, lightmode... --- zsh/.zshrc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 38c08f0..de9141d 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -123,6 +123,8 @@ bindkey '^N' history-substring-search-down bindkey -M vicmd 'k' history-substring-search-up bindkey -M vicmd 'j' history-substring-search-down # }}} End configuration added by Zim install +autoload compinit; compinit +autoload -U +X bashcompinit && bashcompinit export FZF_DEFAULT_COMMAND='fd --type f' source /usr/share/fzf/completion.zsh @@ -147,10 +149,16 @@ eval "$(jenv init -)" eval "$(direnv hook zsh)" +if [[ -n "${LIGHTMODE}" ]]; then + export BAT_THEME="Solarized (light)" +fi + + export PATH="$PATH:$HOME/.local/bin" export PATH="$HOME/.bin:$PATH" export PATH="${PATH}:${HOME}/.krew/bin" export TERM=xterm-256color +export GROFF_NO_SGR=1 # man page colors in less alias light="mqtt pub -t cmnd/Workbench/POWER -m " alias ac="mqtt pub -t tele/Comfee/cmnd/POWER -m " @@ -179,6 +187,10 @@ alias e="$EDITOR" alias o='handlr open' alias vs="nvim -S Session.vim" +alias cat='bat -p' + +alias svcmail='echo "svc-$(openssl rand -hex 5)@rad4day.de"' + # Yes I know this is a bad idea # also I don't care. alias hugo='docker run -v "$PWD:/src" -w "/src" -u $UID:$GID -p 1313:1313 --rm klakegg/hugo:ext-alpine' @@ -200,7 +212,3 @@ function calc() { fi printf "\n" } - -autoload compinit; compinit -autoload -U +X bashcompinit && bashcompinit -complete -o nospace -C /usr/bin/mcli mcli