From 24e04853691cd564f2c27eeb2eda25bff7919e81 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 14 Oct 2023 11:12:37 -0600 Subject: [PATCH] zshrc: command not found handler --- common/.zshrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/common/.zshrc b/common/.zshrc index fba44d2..a8ea1d5 100644 --- a/common/.zshrc +++ b/common/.zshrc @@ -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