diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2019-01-24 23:34:51 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2019-01-24 23:34:51 +0000 |
commit | 60315f8f9de3087b0a4ee7fe85a38dfe0c3e0c02 (patch) | |
tree | 5d549653c10b2a04651e57981662b00c667b3580 /bin | |
parent | aa4dd64dfec15d8bc6118db6f26ca88f9dbec84e (diff) | |
download | src-test2-60315f8f9de3087b0a4ee7fe85a38dfe0c3e0c02.tar.gz src-test2-60315f8f9de3087b0a4ee7fe85a38dfe0c3e0c02.zip |
Notes
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/Makefile | 9 | ||||
-rw-r--r-- | bin/sh/dot.profile | 3 | ||||
-rw-r--r-- | bin/sh/dot.shrc | 39 |
3 files changed, 48 insertions, 3 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile index abd756bb8e6d..ee4fa87026cf 100644 --- a/bin/sh/Makefile +++ b/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 diff --git a/bin/sh/dot.profile b/bin/sh/dot.profile index 76ebfd5e6168..fd0c43fdb927 100644 --- a/bin/sh/dot.profile +++ b/bin/sh/dot.profile @@ -9,6 +9,9 @@ export TERM 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 diff --git a/bin/sh/dot.shrc b/bin/sh/dot.shrc new file mode 100644 index 000000000000..f497bd66f819 --- /dev/null +++ b/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 |