]> arthur.barton.de Git - ax-zsh.git/blobdiff - default_plugins/correction/correction.zshrc
Don't hardcode default plugins, read them from ./default_plugins/
[ax-zsh.git] / default_plugins / correction / correction.zshrc
diff --git a/default_plugins/correction/correction.zshrc b/default_plugins/correction/correction.zshrc
new file mode 100644 (file)
index 0000000..b2412f6
--- /dev/null
@@ -0,0 +1,21 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# correction.zshrc: Setup correction
+
+for cmd (
+       apt
+       aptitude
+       brew
+       ebuild
+       gist
+       man
+       mkdir
+       mv
+       mysql
+       pkg_add
+       sudo
+); do
+       [[ -n $commands[$cmd] ]] \
+               && alias $cmd="nocorrect $cmd"
+done
+
+setopt correct_all