diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-10-15 07:32:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-10-15 07:32:06 +0000 |
commit | 3a18fcfad98ca1b716c0ae3c8baa2875198a7c57 (patch) | |
tree | ee8c98cdc7b6d3460a5f612b2f16f467c06305aa /distrib/sparc | |
parent | 8dd8c434a0536ccde8cae73a928c5c5333344e22 (diff) |
kill editor choice -- irrelevant
Diffstat (limited to 'distrib/sparc')
-rw-r--r-- | distrib/sparc/miniroot/dot.profile | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/distrib/sparc/miniroot/dot.profile b/distrib/sparc/miniroot/dot.profile index accd8077ce0..d9b97d37dde 100644 --- a/distrib/sparc/miniroot/dot.profile +++ b/distrib/sparc/miniroot/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.10 1998/04/13 01:17:23 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.11 1998/10/15 07:32:05 deraadt Exp $ # $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $ # # Copyright (c) 1995 Jason R. Thorpe @@ -48,8 +48,6 @@ TERMS="sun vt* pcvt* pc3 dumb" TERM=sun # editors believed to be in $EDITBIN, smart and dumb defaults -EDITORS="vi ed" -EDITOR=vi DUMB=ed EDITBIN=/bin EDITUBIN=/usr/bin @@ -76,48 +74,10 @@ if [ "X${DONEPROFILE}" = "X" ]; then done export TERM - # get the editor preference - if [ "X$TERM" = "Xdumb" -o "X$TERM" = "Xunknown" ]; then - echo -n "$TERM can't handle $EDITOR" - EDITOR="$DUMB" - echo ", using $EDITOR as text editor!" - elif [ "X$EDITOR" = "X$EDITORS" ]; then - echo "Only one editor available, you get to use $EDITOR!" - else - _forceloop="" - while [ "X$_forceloop" = X"" ]; do - echo "Supported editors are: $EDITORS" - echo -n "text editor? [$EDITOR] " - read _choice - if [ "X$_choice" = "X" ]; then - _choice="$EDITOR" - _forceloop="$_choice" - else - for _editor in $EDITORS; do - if [ "X$_choice" = "X$_editor" ]; then - _forceloop="$_choice" - break - fi - done - fi - if [ "X$_forceloop" != "X" -a \ - ! \( -x $EDITBIN/$_choice -o \ - -x $EDITUBIN/$_choice \) ]; then - _forceloop="" - fi - if [ "X$_forceloop" = "X" ]; then - echo "Sorry, $_choice isn't available." - _forceloop="" - fi - done - EDITOR="$_choice" - fi - export EDITOR - # Installing or upgrading? _forceloop="" while [ "X$_forceloop" = X"" ]; do - echo -n '(I)nstall, (U)pgrade, (S)hell? ' + echo -n '(I)nstall, (U)pgrade, or (S)hell? ' read _forceloop case "$_forceloop" in i*|I*) |