]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/skel/dot.profile
login(1): when exporting variables check the result of setenv(3)
[FreeBSD/FreeBSD.git] / share / skel / dot.profile
1 # $FreeBSD$
2 #
3 # .profile - Bourne Shell startup script for login shells
4 #
5 # see also sh(1), environ(7).
6 #
7
8 # These are normally set through /etc/login.conf.  You may override them here
9 # if wanted.
10 # PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH
11
12 # Setting TERM is normally done through /etc/ttys.  Do only override
13 # if you're sure that you'll never log in via telnet or xterm or a
14 # serial line.
15 # TERM=xterm;   export TERM
16
17 EDITOR=vi;      export EDITOR
18 PAGER=less;     export PAGER
19
20 # set ENV to a file invoked each time sh is started for interactive use.
21 ENV=$HOME/.shrc; export ENV
22
23 # Let sh(1) know it's at home, despite /home being a symlink.
24 if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi
25
26 # Query terminal size; useful for serial lines.
27 if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
28
29 # Display a random cookie on each login.
30 if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune freebsd-tips ; fi