feat(zsh): bat, hg & mkcd
This commit is contained in:
parent
15a2781fa1
commit
2b033123b5
8
.zshrc
8
.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'
|
||||
|
Loading…
Reference in New Issue
Block a user