]> arthur.barton.de Git - ax-zsh.git/commitdiff
Remove most "nocorrect" settings
authorAlexander Barton <alex@barton.de>
Sat, 2 Nov 2019 15:50:18 +0000 (16:50 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 2 Nov 2019 15:50:18 +0000 (16:50 +0100)
core/11_terminal/11_terminal.zshrc
default_plugins/correction/correction.zshrc
plugins/pdfman/pdfman.zshrc

index ac24c3be772dffacf151b73d5fb7feed775ffb87..ebc4cbb9eb1a4882c6c712b6bd753064e20390c3 100644 (file)
@@ -130,7 +130,7 @@ function axzsh_terminal_title_preexec {
 
 preexec_functions+=(axzsh_terminal_title_preexec)
 
-alias axttyinfo="nocorrect zsh $AXZSH/bin/axttyinfo"
+alias axttyinfo="zsh $AXZSH/bin/axttyinfo"
 
 axzsh_is_dumb_terminal && return 0
 
index 5ee0cf0664f4aeadd9b917b4b72a54b27438ca06..96d4ccad6f5267b14c54f6b12f7cc1583824e468 100644 (file)
@@ -1,40 +1,6 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # correction.zshrc: Setup correction
 
-# Always-available commands, for example shell bultin. No need to check for
-# existence, always define "nocorrect alias".
-for cmd (
-       alias
-       command
-       echo
-       print
-       printf
-       type
-       which
-); do
-       alias $cmd="nocorrect $cmd"
-done
-
-# Optional commands, check for existence first before creating the alias!
-for cmd (
-       apt
-       aptitude
-       brew
-       ebuild
-       gist
-       man
-       mkdir
-       mv
-       mysql
-       pgrep
-       pkg_add
-       pkill
-       sudo
-); do
-       [[ -n $commands[$cmd] ]] \
-               && alias $cmd="nocorrect $cmd"
-done
-
 setopt correct_all
 
 # Ignore dot files, don't offer them as a correction.
index 9167100f409d6e3b84e15b6a9bdb399c37621397..7f28ec723f4c4f29455c30469705c0547b20a116 100644 (file)
@@ -4,4 +4,4 @@
 # Make sure that "pdfman" script is installed
 (( $+commands[pdfman] )) || return
 
-alias man='nocorrect pdfman'
+alias man='pdfman'