diff --git a/.zshrc b/.zshrc index a3b0970..a5a38c6 100644 --- a/.zshrc +++ b/.zshrc @@ -158,7 +158,7 @@ source ${ZIM_HOME}/init.zsh ### -### Aliases / Functions +### Aliases & Small Functions ### # # https://www.thorsten-hans.com/5-types-of-zsh-aliases @@ -170,6 +170,8 @@ alias cp='cp --interactive' alias mv='mv --interactive' alias rm='rm -I' +mkcd() { command mkdir -p "$@" && builtin cd "$@" } + autoload -U zmv alias mmv='noglob zmv -W' @@ -210,7 +212,7 @@ lg() # Kitty # -hg () { kitty +kitten hyperlinked_grep "$@" } +hg () { kitten hyperlinked_grep "$@" } compdef hg=rg # Neovim — nvim @@ -345,5 +347,7 @@ typeset -U path fpath ### Completion Late Definitions ### +compdef bat=cat + # Hide "parameters" (i.e. environment variables) when looking for a "command" zstyle ':completion:*:-command-:*' tag-order '!parameters'