-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.cshrc
82 lines (63 loc) · 2.5 KB
/
.cshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# $NetBSD: dot.cshrc,v 1.10 2025/02/02 03:32:02 tsutsui Exp $
#
# This is the default .cshrc file.
# Users are expected to edit it to meet their own needs.
#
# The commands in this file are executed each time a new csh shell
# is started.
#
# See csh(1) for details.
#
# Set your editor. Default to explicitly setting vi, as otherwise some
# software will run ed and other software will fail. Can be set to
# emacs or nano or whatever other editor you may prefer, but of course
# those editors must be installed before you can use them.
setenv EDITOR vi
#setenv EDITOR emacs
# vi settings: set show-match auto-indent always-redraw shift-width=4
#setenv EXINIT "se sm ai redraw sw=4"
# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
# set will be run by preference to $EDITOR by some software. It is
# mostly historical and usually does not need to be set.
#setenv VISUAL ${EDITOR}
# Set the pager. This is used by, among other things, man(1) for
# showing man pages. The default is "more". Another reasonable choice
# (included with the system by default) is "less".
#setenv PAGER less
# Many modern terminal emulators don't provide a way to disable
# alternate screen switching (like xterm's titeInhibit). less(1) has
# its own option (-X) for that that you can use to alleviate the pain,
# as PAGER is the most common scenario for hitting this. Add other
# flags according to taste.
#setenv LESS "-i -M -X"
# Set your default printer, if desired.
#setenv PRINTER change-this-to-a-printer
# Set LANG; using ja_JP.UTF-8 on this liveimage
setenv LANG ja_JP.UTF-8
# Set PERL_BADLANG to appease perl warnings on LANG=ja_JP.UTF-8 environment
setenv PERL_BADLANG 0
# Set XAPPLRESDIR for some pkgsrc binaries
setenv XAPPLRESDIR /usr/pkg/lib/X11/app-defaults
# Set the search path for programs.
set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \
/usr/local/{,s}bin)
if ($?prompt) then
# An interactive shell -- set some stuff up
# terminal settings
stty erase ^H kill ^U intr ^C
# Filename completion.
set filec
# Size of the history buffer.
set history = 1000
# Do not exit on EOF condition (e.g. ^D typed)
# (disabled by default, not default behavior)
set ignoreeof
# Set the location of your incoming email for mail notification.
set mail = (/var/mail/$USER)
# Set the prompt to include the hostname.
set mch = `hostname -s`
#set prompt = "${mch:q}: {\!} "
set prompt = "${mch:q}-% "
# Configure the shell (on su(1) etc.) to load .shrc at startup time.
setenv ENV ~/.shrc
endif