957802cd0c
With the import of Xorg, a proper separation between login-time and sub shell-time of the environment setup is necessary. Instead of re-developping this from scratch, I am taking the opportunity to import the NetBSD default environment. Change-Id: Ib6a8fbd9c2f407ccd59be57a52ef9df21c2c9ce7
43 lines
1.4 KiB
Text
43 lines
1.4 KiB
Text
# $NetBSD: dot.cshrc,v 1.24 2012/03/11 17:28:47 he Exp $
|
|
|
|
alias h history
|
|
alias j jobs -l
|
|
alias hup '( set pid=$< ; kill -HUP $pid ) < /var/run/\!$.pid'
|
|
alias la ls -a
|
|
alias lf ls -FA
|
|
alias ll ls -l
|
|
|
|
alias x exit
|
|
alias z suspend
|
|
|
|
alias back 'set back="$old"; set old="$cwd"; cd "$back"; unset back; dirs'
|
|
alias cd 'set old="$cwd"; chdir \!*'
|
|
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 BLOCKSIZE 1k
|
|
|
|
# Uncomment the following line(s) to install binary packages
|
|
# from ftp.NetBSD.org via pkg_add. (See also pkg_install.conf)
|
|
#setenv PKG_PATH "ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -m`/6.0/All"
|
|
#setenv PKG_PATH "${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -m`/5.1/All"
|
|
#setenv PKG_PATH "${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -m`/5.0/All"
|
|
|
|
set history=1000
|
|
set path=(/sbin /usr/sbin /bin /usr/bin /usr/pkg/sbin /usr/pkg/bin /usr/X11R7/bin /usr/X11R6/bin /usr/local/sbin /usr/local/bin)
|
|
|
|
# directory stuff: cdpath/cd/back
|
|
set cdpath=(/usr/src/{sys,bin,sbin,usr.{bin,sbin},lib,libexec,share,local,games,gnu/{usr.{bin,sbin},libexec,lib,games}})
|
|
|
|
if ($?prompt && -x /usr/bin/id ) then
|
|
if (`/usr/bin/id -u` == 0) then
|
|
set prompt="`hostname -s`# "
|
|
else
|
|
set prompt="`hostname -s`% "
|
|
endif
|
|
endif
|
|
|
|
umask 022
|