summaryrefslogtreecommitdiffstats
path: root/share/skel/dot.cshrc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-12-01 08:41:35 +0000
committerjkh <jkh@FreeBSD.org>1995-12-01 08:41:35 +0000
commit84d1e2da6d7870a677e3203f8d093d40dc112fad (patch)
treeac6d13e581dc0e12193297d539dabb0b2f9f7487 /share/skel/dot.cshrc
parentd1e63e144e1d1f58d1cb76a6348c28ac3eab5da8 (diff)
downloadFreeBSD-src-84d1e2da6d7870a677e3203f8d093d40dc112fad.zip
FreeBSD-src-84d1e2da6d7870a677e3203f8d093d40dc112fad.tar.gz
Update these from new examples in etc/root. Also comment out
dot.rhosts entries which are wholly bogus and not worth a search on.
Diffstat (limited to 'share/skel/dot.cshrc')
-rw-r--r--share/skel/dot.cshrc29
1 files changed, 20 insertions, 9 deletions
diff --git a/share/skel/dot.cshrc b/share/skel/dot.cshrc
index bea5a4e..d8a402c 100644
--- a/share/skel/dot.cshrc
+++ b/share/skel/dot.cshrc
@@ -5,21 +5,32 @@ alias j jobs -l
alias la ls -a
alias lf ls -FA
alias ll ls -lA
-alias su su -m
setenv EDITOR vi
-setenv EXINIT 'set autoindent'
setenv PAGER more
-
-set path = (~/bin /bin /usr/{bin,games} /usr/local/bin /usr/X11R6/bin)
+setenv BLOCKSIZE K
if ($?prompt) then
# An interactive shell -- set some stuff up
+
+ set noglob; eval `tset -s`; unset noglob
+ stty -istrip
+
set filec
- set history = 1000
- set ignoreeof
+ set history = 100
+ set savehist = 100
set mail = (/var/mail/$USER)
- set mch = `hostname -s`
- set prompt = "${mch:q}: {\!} "
- umask 2
+
+ # customize prompt - works with tcsh only
+ set machine = `hostname -s`
+ if ("$TERM" == xterm) then
+ alias cwdcmd 'echo -n "]0;${USER}@${machine}: `dirs`"'
+ set prompt = "> "
+ else
+ alias cwdcmd 'set prompt = "${USER}@${machine}:${cwd}> "'
+ endif
+ cwdcmd
+
+ # fix broken prompt after su
+ alias su 'su \!* ; cwdcmd'
endif
OpenPOWER on IntegriCloud