From 3ddd2d530285c225b501fc3c29dd623d90f43f6c Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Sat, 25 Mar 2023 13:45:12 +0100 Subject: [PATCH] ZSH: More tooling the better --- zsh/.zshrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index c1e7376..38c08f0 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -140,7 +140,7 @@ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch gpg-agent # Editor -export EDITOR=vim +export EDITOR=nvim export PATH="$HOME/.jenv/bin:$PATH" eval "$(jenv init -)" @@ -149,11 +149,11 @@ eval "$(direnv hook zsh)" export PATH="$PATH:$HOME/.local/bin" export PATH="$HOME/.bin:$PATH" +export PATH="${PATH}:${HOME}/.krew/bin" export TERM=xterm-256color alias light="mqtt pub -t cmnd/Workbench/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 bindkey '^I' fzf_completion source =(thefuck -a) @@ -173,6 +173,7 @@ alias gc="git commit" alias gcf="git commit --fixup=@" alias ga="git add" alias gp="git push" +alias gpa="git push -o ci.variable=\"AUTO_APPLY=true\"" alias e="$EDITOR" alias o='handlr open' @@ -180,7 +181,7 @@ alias vs="nvim -S Session.vim" # 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:alpine' +alias hugo='docker run -v "$PWD:/src" -w "/src" -u $UID:$GID -p 1313:1313 --rm klakegg/hugo:ext-alpine' # Simple calculator function calc() { @@ -199,3 +200,7 @@ function calc() { fi printf "\n" } + +autoload compinit; compinit +autoload -U +X bashcompinit && bashcompinit +complete -o nospace -C /usr/bin/mcli mcli