forked from vivekp/minix-1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import NetBSD shell environment files
With the import of Xorg, a proper separation between login-time and sub shell-time of the environment setup is necessary. Instead of re-developping this from scratch, I am taking the opportunity to import the NetBSD default environment. Change-Id: Ib6a8fbd9c2f407ccd59be57a52ef9df21c2c9ce7
- Loading branch information
Showing
23 changed files
with
322 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# $NetBSD: csh.cshrc,v 1.2 1996/05/08 17:19:27 thorpej Exp $ | ||
# | ||
# System-wide .cshrc file for csh(1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# $NetBSD: csh.login,v 1.2 1996/05/08 17:19:28 thorpej Exp $ | ||
# | ||
# System-wide .login file for csh(1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# $NetBSD: csh.logout,v 1.2 1996/05/08 17:19:31 thorpej Exp $ | ||
# | ||
# System-wide .logout file for csh(1). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# $NetBSD: Makefile,v 1.4 2012/11/17 23:08:38 uwe Exp $ | ||
|
||
CONFIGFILES= dot.cshrc dot.klogin dot.login dot.profile dot.shrc | ||
|
||
FILESDIR= /root | ||
FILESMODE= 644 | ||
FILESMODE_dot.klogin= 600 | ||
.for F in ${CONFIGFILES} | ||
FILESNAME_${F}= ${F:S/dot//} | ||
.endfor | ||
|
||
.include <bsd.own.mk> | ||
.if !defined(__MINIX) | ||
CONFIGLINKS= /root/.cshrc /.cshrc \ | ||
/root/.profile /.profile | ||
.endif # !defined(__MINIX) | ||
|
||
.include <bsd.files.mk> | ||
.include <bsd.links.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# $NetBSD: dot.cshrc,v 1.24 2012/03/11 17:28:47 he Exp $ | ||
|
||
alias h history | ||
alias j jobs -l | ||
alias hup '( set pid=$< ; kill -HUP $pid ) < /var/run/\!$.pid' | ||
alias la ls -a | ||
alias lf ls -FA | ||
alias ll ls -l | ||
|
||
alias x exit | ||
alias z suspend | ||
|
||
alias back 'set back="$old"; set old="$cwd"; cd "$back"; unset back; dirs' | ||
alias cd 'set old="$cwd"; chdir \!*' | ||
alias pd pushd | ||
alias pd2 pushd +2 | ||
alias pd3 pushd +3 | ||
alias pd4 pushd +4 | ||
alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob histchars' | ||
|
||
setenv BLOCKSIZE 1k | ||
|
||
# Uncomment the following line(s) to install binary packages | ||
# from ftp.NetBSD.org via pkg_add. (See also pkg_install.conf) | ||
#setenv PKG_PATH "ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -m`/6.0/All" | ||
#setenv PKG_PATH "${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -m`/5.1/All" | ||
#setenv PKG_PATH "${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -m`/5.0/All" | ||
|
||
set history=1000 | ||
set path=(/sbin /usr/sbin /bin /usr/bin /usr/pkg/sbin /usr/pkg/bin /usr/X11R7/bin /usr/X11R6/bin /usr/local/sbin /usr/local/bin) | ||
|
||
# directory stuff: cdpath/cd/back | ||
set cdpath=(/usr/src/{sys,bin,sbin,usr.{bin,sbin},lib,libexec,share,local,games,gnu/{usr.{bin,sbin},libexec,lib,games}}) | ||
|
||
if ($?prompt && -x /usr/bin/id ) then | ||
if (`/usr/bin/id -u` == 0) then | ||
set prompt="`hostname -s`# " | ||
else | ||
set prompt="`hostname -s`% " | ||
endif | ||
endif | ||
|
||
umask 022 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# $NetBSD: dot.klogin,v 1.3 1997/10/28 03:33:20 mrg Exp $ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# $NetBSD: dot.login,v 1.9 2009/05/15 23:57:50 ad Exp $ | ||
|
||
eval `tset -sQrm 'unknown:?unknown'` | ||
|
||
# Do not display in 'su -' case | ||
if ( ! $?SU_FROM ) then | ||
echo "We recommend that you create a non-root account and use su(1) for root access." | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# $NetBSD: dot.profile,v 1.26 2012/03/11 17:28:47 he Exp $ | ||
|
||
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin | ||
export PATH=${PATH}:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin | ||
|
||
# Uncomment the following line(s) to install binary packages | ||
# from ftp.NetBSD.org via pkg_add. (See also pkg_install.conf) | ||
#export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/6.0/All | ||
#export PKG_PATH="${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/5.1/All" | ||
#export PKG_PATH="${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/5.0/All" | ||
|
||
export BLOCKSIZE=1k | ||
|
||
export HOST="$(hostname)" | ||
|
||
if [ -x /usr/bin/tset ]; then | ||
eval $(tset -sQrm 'unknown:?unknown') | ||
fi | ||
|
||
umask 022 | ||
#ulimit -c 0 | ||
|
||
export ENV=/root/.shrc | ||
|
||
# Do not display in 'su -' case | ||
# Would be nice, but still not tested enough on MINIX | ||
#if [ -z "$SU_FROM" ]; then | ||
# echo "We recommend that you create a non-root account and use su(1) for root access." | ||
#fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# $NetBSD: dot.shrc,v 1.8 2007/11/24 11:14:41 pavel Exp $ | ||
|
||
if [ -f /etc/shrc ]; then | ||
. /etc/shrc | ||
fi | ||
|
||
hup(){ (read pid; kill -HUP $pid) </var/run/$1.pid; } | ||
|
||
case "$-" in *i*) | ||
# interactive mode settings go here | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# $NetBSD: shrc,v 1.7 2010/12/27 03:38:52 christos Exp $ | ||
# | ||
# System-wide .shrc file for sh(1). | ||
|
||
ll(){ ls -l ${1+"$@"}; } | ||
|
||
case "$-" in *i*) | ||
if /bin/test -z "${HOST}"; then | ||
HOST="$(hostname)" | ||
fi | ||
# hostname is set to the ip address by default on MINIX, so | ||
# don't truncate on the first dot. | ||
#PS1="${HOST%%.*}$PS1" | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# $NetBSD: Makefile,v 1.8 2006/09/01 13:01:55 tron Exp $ | ||
# from: @(#)Makefile 8.1 (Berkeley) 6/8/93 | ||
|
||
CONFIGFILES= dot.cshrc dot.login dot.logout dot.profile dot.shrc | ||
FILESDIR= /etc/skel | ||
.for F in ${CONFIGFILES} | ||
FILESNAME_${F}= ${F:S/dot//} | ||
.endfor | ||
|
||
.include <bsd.prog.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# $NetBSD: dot.cshrc,v 1.7 2011/10/19 14:42:37 christos Exp $ | ||
# | ||
# This is the default .cshrc file. | ||
# Users are expected to edit it to meet their own needs. | ||
# | ||
# The commands in this file are executed each time a new csh shell | ||
# is started. | ||
# | ||
# See csh(1) for details. | ||
# | ||
|
||
# Set your editor. Default to explicitly setting vi, as otherwise some | ||
# software will run ed and other software will fail. Can be set to | ||
# emacs or nano or whatever other editor you may prefer, but of course | ||
# those editors must be installed before you can use them. | ||
setenv EDITOR vi | ||
|
||
# vi settings: set show-match auto-indent always-redraw shift-width=4 | ||
#setenv EXINIT "se sm ai redraw sw=4" | ||
|
||
# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if | ||
# set will be run by preference to $EDITOR by some software. It is | ||
# mostly historical and usually does not need to be set. | ||
#setenv VISUAL ${EDITOR} | ||
|
||
# Set the pager. This is used by, among other things, man(1) for | ||
# showing man pages. The default is "more". Another reasonable choice | ||
# (included with the system by default) is "less". | ||
#setenv PAGER more | ||
|
||
# Set your default printer, if desired. | ||
#setenv PRINTER change-this-to-a-printer | ||
|
||
# Set the search path for programs. | ||
set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,X11R6/bin,pkg/{,s}bin,games} \ | ||
/usr/local/{,s}bin) | ||
|
||
if ($?prompt) then | ||
# An interactive shell -- set some stuff up | ||
|
||
# Filename completion. | ||
set filec | ||
|
||
# Size of the history buffer. | ||
set history = 1000 | ||
|
||
# Do not exit on EOF condition (e.g. ^D typed) | ||
# (disabled by default, not default behavior) | ||
#set ignoreeof | ||
|
||
# Set the location of your incoming email for mail notification. | ||
set mail = (/var/mail/$USER) | ||
|
||
# Set the prompt to include the hostname. | ||
set mch = `hostname -s` | ||
set prompt = "${mch:q}: {\!} " | ||
endif |
Oops, something went wrong.