xref: /titanic_41/usr/src/cmd/nsadmin/ksh.kshrc (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
1*da2e3ebdSchin#
2*da2e3ebdSchin# CDDL HEADER START
3*da2e3ebdSchin#
4*da2e3ebdSchin# The contents of this file are subject to the terms of the
5*da2e3ebdSchin# Common Development and Distribution License (the "License").
6*da2e3ebdSchin# You may not use this file except in compliance with the License.
7*da2e3ebdSchin#
8*da2e3ebdSchin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*da2e3ebdSchin# or http://www.opensolaris.org/os/licensing.
10*da2e3ebdSchin# See the License for the specific language governing permissions
11*da2e3ebdSchin# and limitations under the License.
12*da2e3ebdSchin#
13*da2e3ebdSchin# When distributing Covered Code, include this CDDL HEADER in each
14*da2e3ebdSchin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*da2e3ebdSchin# If applicable, add the following below this CDDL HEADER, with the
16*da2e3ebdSchin# fields enclosed by brackets "[]" replaced with your own identifying
17*da2e3ebdSchin# information: Portions Copyright [yyyy] [name of copyright owner]
18*da2e3ebdSchin#
19*da2e3ebdSchin# CDDL HEADER END
20*da2e3ebdSchin#
21*da2e3ebdSchin
22*da2e3ebdSchin#
23*da2e3ebdSchin# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*da2e3ebdSchin# Use is subject to license terms.
25*da2e3ebdSchin#
26*da2e3ebdSchin# ident	"%Z%%M%	%I%	%E% SMI"
27*da2e3ebdSchin#
28*da2e3ebdSchin
29*da2e3ebdSchin#
30*da2e3ebdSchin# This file is sourced by interactive ksh93 shells before ${HOME}/.kshrc
31*da2e3ebdSchin#
32*da2e3ebdSchin
33*da2e3ebdSchin# Enable "gmacs" editor mode if the user did not set an input mode yet
34*da2e3ebdSchin# (for example via ${EDITOR}, ${VISUAL} or any "set -o" flag)
35*da2e3ebdSchinif [[ "$(set +o)" != ~(E)--(gmacs|emacs|vi)( |$) ]] ; then
36*da2e3ebdSchin    set -o gmacs
37*da2e3ebdSchinfi
38*da2e3ebdSchin
39*da2e3ebdSchin
40*da2e3ebdSchin# enable multiline input mode
41*da2e3ebdSchin#set -o multiline
42*da2e3ebdSchin
43