commit 78101b75ad63a358e89e65baa9a95dbccf691881 Author: Tomasz Pala <go...@pld-linux.org> Date: Sun Oct 16 11:09:19 2016 +0200
blacklist some dangerous commands from shell history zshrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) --- diff --git a/zshrc b/zshrc index 85c34bb..96c0d75 100644 --- a/zshrc +++ b/zshrc @@ -2,8 +2,21 @@ alias which=whence alias cd='builtin cd' + +# mc: don't clutter history alias precmd=' precmd' +# avoid accidental execution from history by inhibiting saving in the first place +# (easier to mitigate than HISTORY_IGNORE, which in turn might be used for mkfs*) +alias kill=' kill' +alias halt=' halt' +alias init=' init' +alias poweroff=' poweroff' +alias reboot=' reboot' +alias runlevel=' runlevel' +alias shutdown=' shutdown' +alias telinit=' telinit' + # SYSTEM WIDE ALIASES ETC. for i in /etc/shrc.d/**/*.sh(N); do . $i ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/zsh.git/commitdiff/ce11a4feff34c3f6affe4bd1648704c1781484fe _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit