Skip to content

Commit

Permalink
Merge branch 'master' of /p/tcsh/tcsh
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulasc committed Jan 3, 2020
2 parents fe08eec + bf831fd commit d85e2f0
Show file tree
Hide file tree
Showing 9 changed files with 271 additions and 209 deletions.
3 changes: 2 additions & 1 deletion BUILDING
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ To install tcsh:
11) Once satisfied that tcsh is working correctly, complete the
installation by typing "make install" to install the binary, and
"make install.man" to install the documentation. Don't forget to
look at complete.tcsh for useful completions...
look at complete.tcsh for useful completions, dot.login for a sample
~/.login file, and dot.tcshrc for a sample ~/.tcshrc file...

12) Enjoy.

Expand Down
339 changes: 139 additions & 200 deletions FAQ

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Imakefile
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ MISCF = Makefile.std BUILDING Fixes MAKEDIFFS MAKESHAR NewThings README.md \
FAQ WishList config_f.h eight-bit.me glob.3 patchlevel.h pathnames.h \
tcsh.man Ported src.desc Imakefile imake.config complete.tcsh \
Makefile.vms termcap.vms snames.h host.defs gethost.c tcsh.man2html \
Makefile.in configure.ac Makefile.win32 aclocal.m4
Makefile.in configure.ac Makefile.win32 aclocal.m4 dot.login dot.tcshrc
CONFSRCS=config/[a-z]*


Expand Down
8 changes: 4 additions & 4 deletions Makefile.ADMIN
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

LYNX= lynx -dump -nolist
TRIM= expand | sed -e 's/^ *$$//' | cat -s
WEB= http://www.tcsh.org/page?
WEB= https://www.tcsh.org

PAGES= FAQ WishList
PAGES= FAQ

all: ${PAGES}

.for i in FAQ WishList
.for i in ${PAGES}
$i: force
${LYNX} ${WEB}$i | ${TRIM} > ${.TARGET}
${LYNX} ${WEB}/${i:tl}/ | ${TRIM} > ${.TARGET}
.endfor

.DUMMY: force
Expand Down
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ AVSRCS= BUILDING Fixes MAKEDIFFS MAKESHAR NewThings README.md FAQ \
pathnames.h tcsh.man Ported src.desc Imakefile imake.config \
complete.tcsh vmsreadme.txt termcap.vms snames.h host.defs \
gethost.c tcsh.man2html configure.ac configure config.h.in \
tests/testsuite.at aclocal.m4
tests/testsuite.at aclocal.m4 dot.login dot.tcshrc
TESTFILES= tests/aliases.at tests/arguments.at tests/commands.at \
tests/expr.at tests/lexical.at tests/mb-eucjp.at \
tests/mb-utf8.at tests/noexec.at tests/parenthesis.at tests/syntax.at \
Expand Down
2 changes: 1 addition & 1 deletion Makefile.std
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ AVSRCS= BUILDING Fixes MAKEDIFFS MAKESHAR NewThings README.md FAQ \
pathnames.h tcsh.man Ported src.desc Imakefile imake.config \
complete.tcsh vmsreadme.txt termcap.vms snames.h host.defs \
gethost.c tcsh.man2html configure.ac configure config.h.in \
aclocal.m4
aclocal.m4 dot.login dot.tcshrc

VHSRCS=${PVSRCS} ${AVSRCS}

Expand Down
2 changes: 1 addition & 1 deletion Makefile.vms
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ AVSRCS= BUILDING Fixes MAKEDIFFS MAKESHAR NewThings README.md FAQ \
WishList config_f.h eight-bit.me glob.3 patchlevel.h \
pathnames.h tcsh.man Ported src.desc Imakefile imake.config \
complete.tcsh vmsreadme.txt termcap.vms snames.h host.defs \
gethost.c tcsh.man2html configure.ac aclocal.m4
gethost.c tcsh.man2html configure.ac aclocal.m4 dot.login dot.tcshrc

VHSRCS=${PVSRCS} ${AVSRCS}

Expand Down
12 changes: 12 additions & 0 deletions dot.login
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# ~/.login - Setup user login shell environment
#
# See also tcsh(1), environ(7).
#

setenv EDITOR vi
setenv PAGER less

# umask 077

# set path=( ~/.local/bin $path:q )
110 changes: 110 additions & 0 deletions dot.tcshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
#
# ~/.tcshrc - Setup user shell environment
#
# See also tcsh(1), environ(7).
#

unalias *

alias h 'history \!* 20'
alias j 'jobs -l'
alias ll 'ls -lAF'
alias md mkdir
alias rd rmdir

#
# The following commands are only for interactive shells.
#

if ( $?prompt ) then
set \
autocorrect \
autoexpand \
autolist=ambiguous \
correct=cmd \
ellipsis \
filec \
history=1000 \
killdup=erase \
listjobs=long \
listlinks \
listmax=100 \
nobeep \
prompt='%N@%m:%B%c02%b%# ' \
rmstar \
savehist=(1000 merge) \

unset promptchars

if ( $?tcsh ) then
bindkey -e

bindkey " " magic-space
bindkey ^W backward-delete-word
bindkey ^Z run-fg-editor
bindkey ^[^W kill-region

#
# Setup $hosts from ~/.hosts, ~/.rhosts, ~/.ssh/known_hosts
#

if ( ! $?hosts ) then
set hosts=()
foreach f ( ~/.{,r,ssh/known_}hosts )
if ( -r "$f" ) then
set hosts=( \
$hosts \
`sed \
-e 's/#.*//' \
-e '/^|/d' \
-e '/^[+-]@/d' \
-e 's/^[+-]//' \
-e 's/[[:space:]].*$//' \
-e 's/,/\n/g' \
"$f" \
| sed \
-e 's/:[[:digit:]]*$//' \
-e 's/^\[\([^]]*\)\]$/\1/' \
-e '/^[.:[:xdigit:][:space:]]*$/d' \
` \
)
endif
end
unset f
endif

uncomplete *

#
# Copy from complete.tcsh
#
if ( -r ~/.complete ) source ~/.complete

uncomplete rcp rsh
endif

#
# Set status to ^G in order to keep using ^T for transpose-char.
#

switch ( "$OSTYPE" )
case bsd44:
case darwin:
case FreeBSD:
case NetBSD:
stty status ^G
if ( $?tcsh ) bindkey ^G stuff-char
breaksw
endsw

#
# We don't want to create a root-owned files in our home.
#

if ( $uid == 0 ) then
unset savehist
setenv LESSHISTFILE -
setenv VIMINIT ':set viminfo='
endif

endif

0 comments on commit d85e2f0

Please sign in to comment.