Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153493958
D18872.id53178.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18872.id53178.diff
View Options
Index: head/bin/sh/Makefile
===================================================================
--- head/bin/sh/Makefile
+++ head/bin/sh/Makefile
@@ -3,9 +3,12 @@
.include <src.opts.mk>
-CONFS= dot.profile profile
-CONFSDIR_dot.profile= /root
-CONFSNAME_dot.profile= .profile
+CONFGROUPS= ETC ROOT
+ETC= profile
+ROOT= dot.shrc dot.profile
+ROOTDIR= /root
+ROOTNAME_dot.shrc= .shrc
+ROOTNAME_dot.profile= .profile
PACKAGE=runtime
PROG= sh
INSTALLFLAGS= -S
Index: head/bin/sh/dot.profile
===================================================================
--- head/bin/sh/dot.profile
+++ head/bin/sh/dot.profile
@@ -9,6 +9,9 @@
PAGER=less
export PAGER
+# set ENV to a file invoked each time sh is started for interactive use.
+ENV=$HOME/.shrc; export ENV
+
# Query terminal size; useful for serial lines.
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
Index: head/bin/sh/dot.shrc
===================================================================
--- head/bin/sh/dot.shrc
+++ head/bin/sh/dot.shrc
@@ -0,0 +1,39 @@
+# $FreeBSD$
+#
+# .shrc - bourne shell startup file
+#
+# This file will be used if the shell is invoked for interactive use and
+# the environment variable ENV is set to this file.
+#
+# see also sh(1), environ(7).
+#
+
+
+# file permissions: rwxr-xr-x
+#
+# umask 022
+
+# Uncomment this to enable the builtin vi(1) command line editor in sh(1),
+# e.g. ESC to go into visual mode.
+# set -o vi
+
+
+# some useful aliases
+alias h='fc -l'
+alias j=jobs
+alias m="$PAGER"
+alias ll='ls -laFo'
+alias l='ls -l'
+alias g='egrep -i'
+
+# # be paranoid
+# alias cp='cp -ip'
+# alias mv='mv -i'
+# alias rm='rm -i'
+
+
+# set prompt: ``username@hostname:directory $ ''
+PS1="\u@\h:\w \\$ "
+
+# search path for cd(1)
+# CDPATH=:$HOME
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 11:24 AM (17 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31937502
Default Alt Text
D18872.id53178.diff (1 KB)
Attached To
Mode
D18872: Set PS1 for toor
Attached
Detach File
Event Timeline
Log In to Comment