aboutsummaryrefslogtreecommitdiff
path: root/etc/root
diff options
context:
space:
mode:
authorBrad Davis <brd@FreeBSD.org>2018-08-15 23:18:34 +0000
committerBrad Davis <brd@FreeBSD.org>2018-08-15 23:18:34 +0000
commit3349f8bb8f35b9aa39b01b8ccfd88f4e2e21ebb5 (patch)
treef929de060ce395932d85e5d283353c6d3d7e5a3b /etc/root
parent799bbc25b9c66ef5b561d9fa63cf3164508c31b4 (diff)
Notes
Diffstat (limited to 'etc/root')
-rw-r--r--etc/root/dot.cshrc43
-rw-r--r--etc/root/dot.profile16
2 files changed, 59 insertions, 0 deletions
diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc
new file mode 100644
index 000000000000..1fcc9917f0f9
--- /dev/null
+++ b/etc/root/dot.cshrc
@@ -0,0 +1,43 @@
+# $FreeBSD$
+#
+# .cshrc - csh resource script, read at beginning of execution by each shell
+#
+# see also csh(1), environ(7).
+# more examples available at /usr/share/examples/csh/
+#
+
+alias h history 25
+alias j jobs -l
+alias la ls -aF
+alias lf ls -FA
+alias ll ls -lAF
+
+# A righteous umask
+umask 22
+
+set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin)
+
+setenv EDITOR vi
+setenv PAGER less
+setenv BLOCKSIZE K
+
+if ($?prompt) then
+ # An interactive shell -- set some stuff up
+ set prompt = "%N@%m:%~ %# "
+ set promptchars = "%#"
+
+ set filec
+ set history = 1000
+ set savehist = (1000 merge)
+ set autolist = ambiguous
+ # Use history to aid expansion
+ set autoexpand
+ set autorehash
+ set mail = (/var/mail/$USER)
+ if ( $?tcsh ) then
+ bindkey "^W" backward-delete-word
+ bindkey -k up history-search-backward
+ bindkey -k down history-search-forward
+ endif
+
+endif
diff --git a/etc/root/dot.profile b/etc/root/dot.profile
new file mode 100644
index 000000000000..76ebfd5e6168
--- /dev/null
+++ b/etc/root/dot.profile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+#
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
+export PATH
+HOME=/root
+export HOME
+TERM=${TERM:-xterm}
+export TERM
+PAGER=less
+export PAGER
+
+# Query terminal size; useful for serial lines.
+if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
+
+# Uncomment to display a random cookie on each login.
+# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fi