summaryrefslogtreecommitdiffstats
path: root/etc/root/dot.cshrc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-11-30 02:28:37 +0000
committerjkh <jkh@FreeBSD.org>1995-11-30 02:28:37 +0000
commit25c3e86bc02d9bc8e89026926cccd6e70bd135a9 (patch)
treec0ea7265134c002f3f1c24a76928b205abe49425 /etc/root/dot.cshrc
parent0a878a8fe65a220a36ed5df8e092faa3851aad20 (diff)
downloadFreeBSD-src-25c3e86bc02d9bc8e89026926cccd6e70bd135a9.zip
FreeBSD-src-25c3e86bc02d9bc8e89026926cccd6e70bd135a9.tar.gz
Revamp root's dotfiles.
Submitted by: Patrick Hausen + mods by me
Diffstat (limited to 'etc/root/dot.cshrc')
-rw-r--r--etc/root/dot.cshrc53
1 files changed, 30 insertions, 23 deletions
diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc
index bbe3174..80c2964 100644
--- a/etc/root/dot.cshrc
+++ b/etc/root/dot.cshrc
@@ -1,29 +1,36 @@
-# $Id: dot.cshrc,v 1.14 1995/09/18 19:53:42 nate Exp $
-#
-alias mail Mail
-set history=1000
-set savehist=1000
-set path=(/sbin /usr/sbin /bin /usr/bin /usr/local/bin)
+#csh .cshrc file
-# directory stuff: cdpath/cd/back
-set cdpath=(/sys/{i386,compile,} /usr/src/{bin,sbin,usr.{bin,sbin},lib,libexec,share,contrib,etc,games,include,} /usr/src/gnu/{games,include,lib,libexec,usr.bin,usr.sbin,})
-alias cd 'set old=$cwd; chdir \!*'
-alias h history
-alias j jobs -l
-alias ll ls -lo
-alias ls ls -o -k
-alias back 'set back=$old; set old=$cwd; cd $back; unset back; dirs'
+alias h history 25
+alias j jobs -l
+alias la ls -a
+alias lf ls -FA
+alias ll ls -lA
-alias z suspend
-alias x exit
-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 EDITOR /stand/ee
+setenv PAGER more
+setenv BLOCKSIZE K
if ($?prompt) then
- set prompt="`hostname -s`# "
+ # An interactive shell -- set some stuff up
+
+ set noglob; eval `tset -s`; unset noglob
+ stty -istrip
+
set filec
+ set history = 100
+ set savehist = 100
+ set mail = (/var/mail/$USER)
+
+ # 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
-setenv BLOCKSIZE K
OpenPOWER on IntegriCloud