head 1.7; access; symbols netbsd-10-0-RELEASE:1.7 netbsd-10-0-RC6:1.7 netbsd-10-0-RC5:1.7 netbsd-10-0-RC4:1.7 netbsd-10-0-RC3:1.7 netbsd-10-0-RC2:1.7 netbsd-10-0-RC1:1.7 netbsd-10:1.7.0.58 netbsd-10-base:1.7 netbsd-9-3-RELEASE:1.7 cjep_sun2x-base1:1.7 cjep_sun2x:1.7.0.56 cjep_sun2x-base:1.7 cjep_staticlib_x-base1:1.7 netbsd-9-2-RELEASE:1.7 cjep_staticlib_x:1.7.0.54 cjep_staticlib_x-base:1.7 netbsd-9-1-RELEASE:1.7 phil-wifi-20200421:1.7 phil-wifi-20200411:1.7 is-mlppp:1.7.0.52 is-mlppp-base:1.7 phil-wifi-20200406:1.7 netbsd-8-2-RELEASE:1.7 netbsd-9-0-RELEASE:1.7 netbsd-9-0-RC2:1.7 netbsd-9-0-RC1:1.7 phil-wifi-20191119:1.7 netbsd-9:1.7.0.50 netbsd-9-base:1.7 phil-wifi-20190609:1.7 netbsd-8-1-RELEASE:1.7 netbsd-8-1-RC1:1.7 pgoyette-compat-merge-20190127:1.7 pgoyette-compat-20190127:1.7 pgoyette-compat-20190118:1.7 pgoyette-compat-1226:1.7 pgoyette-compat-1126:1.7 pgoyette-compat-1020:1.7 pgoyette-compat-0930:1.7 pgoyette-compat-0906:1.7 netbsd-7-2-RELEASE:1.7 pgoyette-compat-0728:1.7 netbsd-8-0-RELEASE:1.7 phil-wifi:1.7.0.48 phil-wifi-base:1.7 pgoyette-compat-0625:1.7 netbsd-8-0-RC2:1.7 pgoyette-compat-0521:1.7 pgoyette-compat-0502:1.7 pgoyette-compat-0422:1.7 netbsd-8-0-RC1:1.7 pgoyette-compat-0415:1.7 pgoyette-compat-0407:1.7 pgoyette-compat-0330:1.7 pgoyette-compat-0322:1.7 pgoyette-compat-0315:1.7 netbsd-7-1-2-RELEASE:1.7 pgoyette-compat:1.7.0.46 pgoyette-compat-base:1.7 netbsd-7-1-1-RELEASE:1.7 matt-nb8-mediatek:1.7.0.44 matt-nb8-mediatek-base:1.7 perseant-stdc-iso10646:1.7.0.42 perseant-stdc-iso10646-base:1.7 netbsd-8:1.7.0.40 netbsd-8-base:1.7 prg-localcount2-base3:1.7 prg-localcount2-base2:1.7 prg-localcount2-base1:1.7 prg-localcount2:1.7.0.38 prg-localcount2-base:1.7 pgoyette-localcount-20170426:1.7 bouyer-socketcan-base1:1.7 pgoyette-localcount-20170320:1.7 netbsd-7-1:1.7.0.36 netbsd-7-1-RELEASE:1.7 netbsd-7-1-RC2:1.7 netbsd-7-nhusb-base-20170116:1.7 bouyer-socketcan:1.7.0.34 bouyer-socketcan-base:1.7 pgoyette-localcount-20170107:1.7 netbsd-7-1-RC1:1.7 pgoyette-localcount-20161104:1.7 netbsd-7-0-2-RELEASE:1.7 localcount-20160914:1.7 netbsd-7-nhusb:1.7.0.32 netbsd-7-nhusb-base:1.7 pgoyette-localcount-20160806:1.7 pgoyette-localcount-20160726:1.7 pgoyette-localcount:1.7.0.30 pgoyette-localcount-base:1.7 netbsd-7-0-1-RELEASE:1.7 netbsd-7-0:1.7.0.28 netbsd-7-0-RELEASE:1.7 netbsd-7-0-RC3:1.7 netbsd-7-0-RC2:1.7 netbsd-7-0-RC1:1.7 netbsd-5-2-3-RELEASE:1.4.26.1 netbsd-5-1-5-RELEASE:1.4.26.1 netbsd-6-0-6-RELEASE:1.7 netbsd-6-1-5-RELEASE:1.7 netbsd-7:1.7.0.26 netbsd-7-base:1.7 yamt-pagecache-base9:1.7 yamt-pagecache-tag8:1.7 netbsd-6-1-4-RELEASE:1.7 netbsd-6-0-5-RELEASE:1.7 tls-earlyentropy:1.7.0.24 tls-earlyentropy-base:1.7 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7 riastradh-drm2-base3:1.7 netbsd-6-1-3-RELEASE:1.7 netbsd-6-0-4-RELEASE:1.7 netbsd-5-2-2-RELEASE:1.4.26.1 netbsd-5-1-4-RELEASE:1.4.26.1 netbsd-6-1-2-RELEASE:1.7 netbsd-6-0-3-RELEASE:1.7 netbsd-5-2-1-RELEASE:1.4.26.1 netbsd-5-1-3-RELEASE:1.4.26.1 netbsd-6-1-1-RELEASE:1.7 riastradh-drm2-base2:1.7 riastradh-drm2-base1:1.7 riastradh-drm2:1.7.0.16 riastradh-drm2-base:1.7 netbsd-6-1:1.7.0.22 netbsd-6-0-2-RELEASE:1.7 netbsd-6-1-RELEASE:1.7 khorben-n900:1.7.0.20 netbsd-6-1-RC4:1.7 netbsd-6-1-RC3:1.7 agc-symver:1.7.0.18 agc-symver-base:1.7 netbsd-6-1-RC2:1.7 netbsd-6-1-RC1:1.7 yamt-pagecache-base8:1.7 netbsd-5-2:1.4.26.1.0.10 netbsd-6-0-1-RELEASE:1.7 yamt-pagecache-base7:1.7 netbsd-5-2-RELEASE:1.4.26.1 netbsd-5-2-RC1:1.4.26.1 matt-nb6-plus-nbase:1.7 yamt-pagecache-base6:1.7 netbsd-6-0:1.7.0.14 netbsd-6-0-RELEASE:1.7 netbsd-6-0-RC2:1.7 tls-maxphys:1.7.0.12 tls-maxphys-base:1.7 matt-nb6-plus:1.7.0.10 matt-nb6-plus-base:1.7 netbsd-6-0-RC1:1.7 yamt-pagecache-base5:1.7 yamt-pagecache-base4:1.7 netbsd-6:1.7.0.8 netbsd-6-base:1.7 netbsd-5-1-2-RELEASE:1.4.26.1 netbsd-5-1-1-RELEASE:1.4.26.1 yamt-pagecache-base3:1.7 yamt-pagecache-base2:1.7 yamt-pagecache:1.7.0.6 yamt-pagecache-base:1.7 cherry-xenmp:1.7.0.4 cherry-xenmp-base:1.7 bouyer-quota2-nbase:1.7 bouyer-quota2:1.7.0.2 bouyer-quota2-base:1.7 matt-mips64-premerge-20101231:1.7 matt-nb5-mips64-premerge-20101231:1.4.26.1 matt-nb5-pq3:1.4.26.1.0.8 matt-nb5-pq3-base:1.4.26.1 netbsd-5-1:1.4.26.1.0.6 netbsd-5-1-RELEASE:1.4.26.1 netbsd-5-1-RC4:1.4.26.1 matt-nb5-mips64-k15:1.4.26.1 netbsd-5-1-RC3:1.4.26.1 netbsd-5-1-RC2:1.4.26.1 netbsd-5-1-RC1:1.4.26.1 netbsd-5-0-2-RELEASE:1.4.26.1 matt-nb5-mips64-premerge-20091211:1.4.26.1 matt-premerge-20091211:1.5 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.4.26.1 matt-nb4-mips64-k7-u2a-k9b:1.4.26.1 matt-nb5-mips64-u1-k1-k5:1.4.26.1 matt-nb5-mips64:1.4.26.1.0.4 netbsd-5-0-1-RELEASE:1.4.26.1 jym-xensuspend-nbase:1.5 netbsd-5-0:1.4.26.1.0.2 netbsd-5-0-RELEASE:1.4.26.1 netbsd-5-0-RC4:1.4.26.1 netbsd-5-0-RC3:1.4.26.1 netbsd-5-0-RC2:1.4 jym-xensuspend:1.4.0.28 jym-xensuspend-base:1.5 netbsd-5-0-RC1:1.4 mjf-devfs2-base2:1.4 netbsd-5:1.4.0.26 netbsd-5-base:1.4 matt-mips64-base2:1.4 matt-mips64:1.4.0.24 netbsd-4-0-1-RELEASE:1.4 wrstuden-revivesa-base-3:1.4 wrstuden-revivesa-base-2:1.4 wrstuden-fixsa-newbase:1.4 wrstuden-revivesa-base-1:1.4 yamt-pf42-base4:1.4 yamt-pf42-base3:1.4 hpcarm-cleanup-nbase:1.4 yamt-pf42-baseX:1.4 yamt-pf42-base2:1.4 wrstuden-revivesa:1.4.0.22 wrstuden-revivesa-base:1.4 yamt-pf42:1.4.0.20 yamt-pf42-base:1.4 mjf-devfs2:1.4.0.18 mjf-devfs2-base:1.4 keiichi-mipv6:1.4.0.16 keiichi-mipv6-base:1.4 mjf-devfs:1.4.0.14 mjf-devfs-base:1.4 matt-armv6-nbase:1.4 matt-armv6-prevmlocking:1.4 wrstuden-fixsa-base-1:1.4 netbsd-4-0:1.4.0.12 netbsd-4-0-RELEASE:1.4 cube-autoconf:1.4.0.10 cube-autoconf-base:1.4 netbsd-4-0-RC5:1.4 netbsd-4-0-RC4:1.4 netbsd-4-0-RC3:1.4 netbsd-4-0-RC2:1.4 netbsd-4-0-RC1:1.4 matt-armv6:1.4.0.8 matt-armv6-base:1.4 matt-mips64-base:1.4 hpcarm-cleanup:1.4.0.6 hpcarm-cleanup-base:1.4 wrstuden-fixsa:1.4.0.4 wrstuden-fixsa-base:1.4 netbsd-4:1.4.0.2 netbsd-4-base:1.4; locks; strict; comment @# @; 1.7 date 2010.12.27.03.38.52; author christos; state Exp; branches; next 1.6; 1.6 date 2010.05.03.17.15.58; author hubertf; state Exp; branches; next 1.5; 1.5 date 2009.02.14.09.53.07; author ad; state Exp; branches; next 1.4; 1.4 date 2006.10.07.22.50.51; author apb; state Exp; branches 1.4.26.1 1.4.28.1; next 1.3; 1.3 date 2006.10.07.10.47.03; author apb; state Exp; branches; next 1.2; 1.2 date 2006.09.22.08.00.33; author taca; state Exp; branches; next 1.1; 1.1 date 2006.09.14.13.01.31; author pavel; state Exp; branches; next ; 1.4.26.1 date 2009.02.23.08.54.00; author snj; state Exp; branches; next ; 1.4.28.1 date 2009.05.13.19.18.02; author jym; state Exp; branches; next ; desc @@ 1.7 log @`` -> $() @ text @# $NetBSD: shrc,v 1.6 2010/05/03 17:15:58 hubertf Exp $ # # System-wide .shrc file for sh(1). ll(){ ls -l ${1+"$@@"}; } case "$-" in *i*) if /bin/test -z "${HOST}"; then HOST="$(hostname)" fi PS1="${HOST%%.*}$PS1" set -o emacs # This file is used by shells that might not support # set -o tabcomplete, so check before trying to use it. ( set -o tabcomplete 2>/dev/null ) && set -o tabcomplete ;; esac @ 1.6 log @Add RCS ID, per PR 43243 @ text @d1 1 a1 1 # $NetBSD: csh.cshrc,v 1.2 1996/05/08 17:19:27 thorpej Exp $ d9 1 a9 1 HOST=`hostname` @ 1.5 log @Set PS1 correctly for ksh. @ text @d1 4 @ 1.4 log @/etc/shrc is used by both sh and ksh, but ksh doesn't support se -o tabcomplete, so test before using it. Problem reported by Pavel Cahyna, and fix tested by him. @ text @d4 3 @ 1.4.28.1 log @Sync with HEAD. Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html @ text @a3 3 if /bin/test -z "${HOST}"; then HOST=`hostname` fi @ 1.4.26.1 log @Pull up following revision(s) (requested by ad in ticket #464): etc/shrc: revision 1.5 Set PS1 correctly for ksh. @ text @a3 3 if /bin/test -z "${HOST}"; then HOST=`hostname` fi @ 1.3 log @set -o tabcomplete if interactive. Discussed on tech-userlevel. @ text @d6 3 a8 1 set -o tabcomplete @ 1.2 log @Make sure to the file end with EOL ("\n"). Without EOL, pkgsrc/pkgtools/pkg_comp cause mysterious error. @ text @d6 1 @ 1.1 log @Factor out common settings from /root/.shrc and /etc/skel/.shrc to a new file /etc/shrc. As proposed on tech-userlevel. @ text @d7 1 a7 1 esac@