ZSH: More tooling the better

This commit is contained in:
Tobias Manske 2023-03-25 13:45:12 +01:00
parent d5d30154bb
commit 3ddd2d5302
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -140,7 +140,7 @@ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent gpgconf --launch gpg-agent
# Editor # Editor
export EDITOR=vim export EDITOR=nvim
export PATH="$HOME/.jenv/bin:$PATH" export PATH="$HOME/.jenv/bin:$PATH"
eval "$(jenv init -)" eval "$(jenv init -)"
@ -149,11 +149,11 @@ eval "$(direnv hook zsh)"
export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:$HOME/.local/bin"
export PATH="$HOME/.bin:$PATH" export PATH="$HOME/.bin:$PATH"
export PATH="${PATH}:${HOME}/.krew/bin"
export TERM=xterm-256color export TERM=xterm-256color
alias light="mqtt pub -t cmnd/Workbench/POWER -m " alias light="mqtt pub -t cmnd/Workbench/POWER -m "
alias ac="mqtt pub -t tele/Comfee/cmnd/POWER -m " alias ac="mqtt pub -t tele/Comfee/cmnd/POWER -m "
# autoload -Uz compinit; compinit
source /usr/share/fzf-tab-completion/zsh/fzf-zsh-completion.sh source /usr/share/fzf-tab-completion/zsh/fzf-zsh-completion.sh
bindkey '^I' fzf_completion bindkey '^I' fzf_completion
source =(thefuck -a) source =(thefuck -a)
@ -173,6 +173,7 @@ alias gc="git commit"
alias gcf="git commit --fixup=@" alias gcf="git commit --fixup=@"
alias ga="git add" alias ga="git add"
alias gp="git push" alias gp="git push"
alias gpa="git push -o ci.variable=\"AUTO_APPLY=true\""
alias e="$EDITOR" alias e="$EDITOR"
alias o='handlr open' alias o='handlr open'
@ -180,7 +181,7 @@ alias vs="nvim -S Session.vim"
# Yes I know this is a bad idea # Yes I know this is a bad idea
# also I don't care. # also I don't care.
alias hugo='docker run -v "$PWD:/src" -w "/src" -u $UID:$GID -p 1313:1313 --rm klakegg/hugo:alpine' alias hugo='docker run -v "$PWD:/src" -w "/src" -u $UID:$GID -p 1313:1313 --rm klakegg/hugo:ext-alpine'
# Simple calculator # Simple calculator
function calc() { function calc() {
@ -199,3 +200,7 @@ function calc() {
fi fi
printf "\n" printf "\n"
} }
autoload compinit; compinit
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/mcli mcli