zshrc: command not found handler
This commit is contained in:
parent
6c2efbd78f
commit
24e0485369
1 changed files with 15 additions and 0 deletions
|
@ -51,6 +51,9 @@ if [[ ! -f "$HOME/.zsh/z.sh" ]]; then
|
||||||
fi
|
fi
|
||||||
. "$HOME/.zsh/z.sh"
|
. "$HOME/.zsh/z.sh"
|
||||||
|
|
||||||
|
autoload -Uz url-quote-magic
|
||||||
|
zle -N self-insert url-quote-magic
|
||||||
|
|
||||||
# Lines configured by zsh-newuser-install
|
# Lines configured by zsh-newuser-install
|
||||||
HISTFILE=~/.zsh_history
|
HISTFILE=~/.zsh_history
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
|
@ -207,9 +210,21 @@ alias mv='mv -i'
|
||||||
alias cls='clear'
|
alias cls='clear'
|
||||||
alias del='rm'
|
alias del='rm'
|
||||||
|
|
||||||
|
if [[ -x "$(command -v eza)" ]]; then
|
||||||
|
alias ls='eza'
|
||||||
|
fi
|
||||||
|
alias ll='ls -lah'
|
||||||
|
alias la='ls -a'
|
||||||
|
|
||||||
####
|
####
|
||||||
|
|
||||||
# functions
|
# 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 () {
|
extract () {
|
||||||
if [ -f $1 ] ; then
|
if [ -f $1 ] ; then
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
Loading…
Reference in a new issue