Zsh: More aliases, lightmode...

This commit is contained in:
Tobias Manske 2023-08-18 19:26:07 +02:00
parent 7082fc1e4f
commit 82403e402f
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -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