zshrc: command not found handler

This commit is contained in:
Cynthia Foxwell 2023-10-14 11:12:37 -06:00
parent 6c2efbd78f
commit 24e0485369

View file

@ -51,6 +51,9 @@ if [[ ! -f "$HOME/.zsh/z.sh" ]]; then
fi
. "$HOME/.zsh/z.sh"
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh_history
HISTSIZE=10000
@ -207,9 +210,21 @@ alias mv='mv -i'
alias cls='clear'
alias del='rm'
if [[ -x "$(command -v eza)" ]]; then
alias ls='eza'
fi
alias ll='ls -lah'
alias la='ls -a'
####
# functions
command_not_found_handler() {
echo "'$1' is not recognized as an internal or external command,"
echo "operable program or batch file."
return 127
}
extract () {
if [ -f $1 ] ; then
case $1 in