diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2007-10-08 14:26:17 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2007-10-08 14:26:17 +0000 |
commit | 596d4e339f64f59e61fb37ac88861703b417d1a8 (patch) | |
tree | 69ec1661c7194fdf4eab086076e6ac3e2fa6d8e7 | |
parent | Action "show" has no parameters. (diff) | |
download | emacs-tools-596d4e339f64f59e61fb37ac88861703b417d1a8.tar.gz emacs-tools-596d4e339f64f59e61fb37ac88861703b417d1a8.tar.bz2 emacs-tools-596d4e339f64f59e61fb37ac88861703b417d1a8.zip |
Warn people that their system is infected by Vi
svn path=/emacs-extra/eselect-emacs/; revision=669
-rw-r--r-- | emacs.eselect | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs.eselect b/emacs.eselect index 0219bb5..7b63edf 100644 --- a/emacs.eselect +++ b/emacs.eselect @@ -133,6 +133,15 @@ xemacs_info() { fi } +vim_info() { + # Don't take this too serious + if [[ -e "${ROOT}/usr/bin/vi" ]]; then + echo + write_list_start "Vi found, your system is in real trouble now!" + fi + +} + test_for_root() { # checks if the user has rights to modify /usr/bin/ [[ -w "${ROOT}/usr/bin" ]] || die -q "You need to be root!" @@ -159,6 +168,7 @@ do_show() { write_kv_list_entry "(unset)" "" fi xemacs_info + vim_info } ### list action ### @@ -186,6 +196,7 @@ do_list() { write_kv_list_entry "(none found)" "" fi xemacs_info + vim_info } ### set action ### |