Gentoo-Probe

 view release on metacpan or  search on metacpan

t/sandbox/usr/portage/app-shells/csh/files/dot.cshrc  view on Meta::CPAN


# some simple aliases
alias h		history 25				# use `h` to show the last 25 commands
alias j		jobs -l					# use `j` to list the background/stopped jobs
alias ls	ls -F --color=auto		# alias `ls` to show nice colours.
alias la	ls -a					# \
alias lf	ls -FA					#  > some shortcuts to common ls options
alias ll	ls -lA					# /

# you can override environment variables from /etc/csh.env from here
setenv	EDITOR	vim
setenv	VISUAL	${EDITOR}
setenv	EXINIT	'set autoindent'
setenv	PAGER	less

# make sure there is something sane in $PATH
if ( ! $?PATH ) then
	set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,pkg/{,s}bin,games} /usr/local/{,s}bin)
endif

# some options you might want in an interactive shell
if ($?prompt) then
	set filec						# use <ESC><ESC> to complete on filenames.
	set history = 1000				# remember last 1000 commands

t/sandbox/usr/portage/app-shells/csh/files/dot.login  view on Meta::CPAN

# Gentoo example csh .login file

if ( ! $?SHELL ) then
  setenv SHELL /bin/csh
endif

set noglob
eval `tset -s -m 'network:?xterm'`
unset noglob
stty status '^T' crt -tostop

if ( -x /usr/games/fortune ) /usr/games/fortune

t/sandbox/usr/portage/app-shells/sash/files/sash-3.4-gentoo.diff  view on Meta::CPAN

-		"fileName ..."
-	},
-
-	{
-		"-rmdir",	do_rmdir,	2,	INFINITE_ARGS,
-		"Remove the specified empty directories",
-		"dirName ..."
-	},
-
-	{
 		"setenv",	do_setenv,	3,	3,
 		"Set an environment variable value",
 		"name value"
@@ -280,51 +112,9 @@
 	},
 
 	{
-		"-sum",		do_sum,		2,	INFINITE_ARGS,
-		"Calculate checksums of the specified files",
-		"fileName ..."
-	},

t/sandbox/usr/portage/app-shells/sash/files/sash-3.4-gentoo.diff  view on Meta::CPAN

 extern	void	do_printenv(int argc, const char ** argv);
-extern	void	do_more(int argc, const char ** argv);
-extern	void	do_cmp(int argc, const char ** argv);
-extern	void	do_touch(int argc, const char ** argv);
-extern	void	do_ls(int argc, const char ** argv);
-extern	void	do_dd(int argc, const char ** argv);
-extern	void	do_tar(int argc, const char ** argv);
-extern	void	do_ar(int argc, const char ** argv);
-extern	void	do_mount(int argc, const char ** argv);
-extern	void	do_umount(int argc, const char ** argv);
 extern	void	do_setenv(int argc, const char ** argv);
-extern	void	do_pwd(int argc, const char ** argv);
-extern	void	do_echo(int argc, const char ** argv);
-extern	void	do_kill(int argc, const char ** argv);
-extern	void	do_grep(int argc, const char ** argv);
-extern	void	do_file(int argc, const char ** argv);
-extern	void	do_find(int argc, const char ** argv);
-extern	void	do_ed(int argc, const char ** argv);
-extern	void	do_where(int argc, const char ** argv);
-
-#ifdef	HAVE_GZIP

t/sandbox/usr/portage/app-shells/tcsh/files/csh.cshrc  view on Meta::CPAN

# system-wide csh.cshrc

if (-e /etc/csh.env) then
	source /etc/csh.env
endif

if ($USER == "root") then
	setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:$ROOTPATH"
	#077 would be more secure, but 022 is generally quite realistic
	umask 022
else
	set path = (/bin /usr/bin $path)
	umask 022
endif

unsetenv ROOTPATH

t/sandbox/usr/portage/app-shells/tcsh/files/csh.cshrc_new  view on Meta::CPAN

##     Improved config file handling.
##
onintr -
##


##
## Start by unsetting all our variables.  This is needed to prevent inheritance
## from the shell that started us -- e.g. when performing a 'su'.
##
unsetenv TCSH_SHELL_CTRLD
unsetenv TCSH_SHELL_SAFEHISTORY
unsetenv TCSH_SHELL_AUTOLOGOUT
unsetenv TCSH_SHELL_SAFETY
unsetenv TCSH_SHELL_DOS
unsetenv TCSH_SHELL_CDALIAS
unsetenv TCSH_SHELL_COMPLETION


##
## Get our own settings.  Make sure they exist in the user's directory.
##
if ( ! -e ~/.tcsh.config ) then
    if ( -e /etc/skel/.tcsh.config ) then
        echo ">>> Copying /etc/skel/.tcsh.config to your home directory ..."
        cp /etc/skel/.tcsh.config ~/.tcsh.config
        echo ">>> Please edit it to fine-tune the TCSH behaviour."

t/sandbox/usr/portage/app-shells/tcsh/files/csh.login  view on Meta::CPAN

alias d 'ls --color'
alias ls 'ls --color=auto'
alias ll 'ls --color -l'

if ($USER == "root") then
	set prompt = "%m %c # "
else
	set prompt = "%m %c $ "
endif

setenv EDITOR /usr/bin/nano

t/sandbox/usr/portage/app-shells/tcsh/files/csh.login_new  view on Meta::CPAN

##
##     Initial version.  Inspired by the Suse version.
##


##
## Default terminal initialization
##
if ( -o /dev/$tty && ${?prompt} ) then
    # Console
    if ( ! ${?TERM} )           setenv TERM linux
    if ( "$TERM" == "unknown" ) setenv TERM linux
    # No tset available on SlackWare
    if ( -x "`which stty`" ) stty sane cr0 pass8 dec
    if ( -x "`which tset`" ) tset -I -Q
    unsetenv TERMCAP
    settc km yes
endif

##
## Default UMASK
##
umask 022

##
## Set our SHELL variable.
##
setenv SHELL /bin/tcsh

##
## Setup a default MAIL variable
##
if ( -f /var/spool/mail/$USER ) then
    setenv MAIL /var/spool/mail/$USER
    set mail=$MAIL
endif

##
## If we're root, report who's logging in and out.
##
if ( "$uid" == "0" ) then
    set who=( "%n has %a %l from %M." )
    set watch=( any any )
endif

t/sandbox/usr/portage/app-shells/tcsh/files/tcsh-complete  view on Meta::CPAN

			      dfaxhigh dfaxlow laserjet ljet4 sparc pbm \
			      pbmraw pgm pgmraw ppm ppmraw bit)/' \
		'c/-sOutputFile=/f/' 'c/-s/(DEVICE OutputFile)/=' \
		'c/-d/(NODISPLAY NOPLATFONTS NOPAUSE)/' 'n/*/f/'
    complete perl	'n/-S/c/'
    complete printenv	'n/*/e/'
    complete sccs	p/1/"(admin cdc check clean comb deledit delget \
			delta diffs edit enter fix get help info \
			print prs prt rmdel sccsdiff tell unedit \
			unget val what)"/
    complete setenv	'p/1/e/' 'c/*:/f/'

    # these and method of setting hosts from Kimmo Suominen <kim@tac.nyc.ny.us>
    if ( -f $HOME/.mh_profile && -x "`which folders`" ) then 

    if ( ! $?FOLDERS ) setenv FOLDERS "`folders -fast -recurse`"
    if ( ! $?MHA )     setenv MHA     "`ali | sed -e '/^ /d' -e 's/:.*//'`"

    set folders = ( $FOLDERS )
    set mha = ( $MHA )

    complete ali \
        'c/-/(alias nolist list nonormalize normalize nouser user help)/' \
        'n,-alias,f,'

    complete anno \
        'c/-/(component noinplace inplace nodate date text help)/' \

t/sandbox/usr/portage/app-shells/tcsh/files/tcsh-complete  view on Meta::CPAN

    # you may need to set the following variables for your host
    set _elispdir = /usr/local/share/emacs/20.7/lisp # GNU Emacs lisp directory
    set _maildir = /var/spool/mail  # Post Office: /var/spool/mail or /usr/mail
    set _ypdir  = /var/yp	# directory where NIS (YP) maps are kept

    # this one works but is slow and doesn't descend into subdirectories
    # complete	cd	C@[./\$~]*@d@ \
    #			p@1@'`\ls -1F . $cdpath | grep /\$ | sort -u`'@ n@*@n@

    if ( -r /etc/shells ) then
        complete setenv	p@1@e@ n@DISPLAY@\$hosts@: n@SHELL@'`cat /etc/shells`'@
    else
	complete setenv	p@1@e@ n@DISPLAY@\$hosts@:
    endif
    complete unsetenv	n/*/e/

    if (-r $HOME/.mailrc) then
        complete mail	c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \
			c@+@F:$HOME/Mail@ C@[./\$~]@f@ n/-s/x:'<subject>'/ \
			n@-u@T:$_maildir@ n/-f/f/ \
			n@*@'`sed -n s/alias//p $HOME/.mailrc | tr -s " " "	" | cut -f 2`'@
    else
        complete mail	c/-/"(e i f n s u v)"/ c/*@/\$hosts/ \
			c@+@F:$HOME/Mail@ C@[./\$~]@f@ n/-s/x:'<subject>'/ \
			n@-u@T:$_maildir@ n/-f/f/ n/*/u/
    endif

    if (! $?MANPATH) then
	if (-r /usr/share/man) then
	    setenv MANPATH /usr/share/man:/usr/local/share/man
	else
	    setenv MANPATH /usr/man:/usr/local/man
	endif
    endif

    # use of $MANPATH from Dan Nicolaescu <dann@ics.uci.edu>
    # use of 'find' adapted from Lubomir Host <host8@kepler.fmph.uniba.sk>
    complete man \
	    'n@1@`set q = "$MANPATH:as%:%/man1 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.1.\*\$%%`@'\
	    'n@2@`set q = "$MANPATH:as%:%/man2 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.2.\*\$%%`@'\
	    'n@3@`set q = "$MANPATH:as%:%/man3 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.3.\*\$%%`@'\
	    'n@4@`set q = "$MANPATH:as%:%/man4 %" ; \ls -1 $q |& sed -e s%^.\*:.\*\$%% -e s%\\.4.\*\$%%`@'\

t/sandbox/usr/portage/app-shells/tcsh/files/tcsh-settings  view on Meta::CPAN

## 2003-01-13  --  Alain Penders (alain@gentoo.org)
##     Renamed to /etc/profile.d/tcsh-settings
##     Major rework - settings are now closer to a normal default.
##


##
## Setup some useful globals.
##
if ( ! $?HOST ) then
    setenv HOST `hostname -s`
endif
if ( -r /etc/inputrc && ! $?INPUTRC ) then
    setenv INPUTRC /etc/inputrc
endif
setenv COLORTERM 1


##
## Everything beyond this point is for interactive shells only!
##
if (! ${?prompt}) goto end


##
## Should CTRL-D exit the shell?

t/sandbox/usr/portage/app-shells/tcsh/files/tcsh.config  view on Meta::CPAN

##
## 2003-01-14  --  Alain Penders (alain@gentoo.org)
##   Initial version
##

#
# Will pressing CTRL-D exit the shell?
#
# Value: set to enable CTRLD, unset to disable.  (Default: enabled)
#
setenv TCSH_SHELL_CTRLD 1

#
# Will the history be saved for the next session when the shell is closed?
#
# Value: set to enable saving the history, unset to disable.  (Default: enabled)
#
setenv TCSH_SHELL_SAVEHISTORY 1

#
# Auto-logout after a certain number of minutes?
#
# Value: unset to disable, set to the number of minutes to enable.  (Default: disabled)
#
#setenv TCSH_SHELL_AUTOLOGOUT 15

#
# Default rm, mv, and cp to safe versions (ask before overwriting or deleting a file)?
#
# Value: set to enable, unset to disable.  (Default: set to protect new users)
#
setenv TCSH_SHELL_SAFETY 1

#
# Add MSDOS/CPM command aliases (del, cls, md, rd, dir)?
#
# Value: set to enable, unset to disable.  (Default: disabled)
#
#setenv TCSH_SHELL_DOS 1

#
# Add CD shortcut aliases?
#
# These include:
#   .    -> pwd
#   ..   -> cd ..
#   ../  -> cd ../
#   -    -> cd -
#   /    -> cd /
#
# Value: set to enable, unset to disable.  (Default: disabled)
#
#setenv TCSH_SHELL_CDALIAS 1

#
# Enable intelligent command line completion (by pressing TAB)?
#
# Value: set to enable, unset to disable.  (Default: enabled)
#
setenv TCSH_SHELL_COMPLETION 1



( run in 1.452 second using v1.01-cache-2.11-cpan-3989ada0592 )