Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 21 Apr 2011 14:42:22 +0400
Subject: tcsh

I've just found some annoying configuration errors in /etc/csh.*
files - most of options which are set in csh.login should really
be set in csh.cshrc instead. Of course, I've fixed that. Now the
question is whether someone mind against adding more examples to
csh.cshrc, namely:

alias ls 'ls-F -Ca'
alias ll 'ls-F -la'
alias lh 'ls-F -lha'

unalias d
unalias dir
unalias v
unalias vdir

if ($?prompt) then
# ... skipped ...
        complete cd 'p/1/d/'
        complete exec 'p/1/c/'
        complete which 'n/*/c/'
#       if ( -s ~/.ssh/known_hosts ) then
#               set known_hosts = \
#                       `cat ~/.ssh/known_hosts | sed -re 's, .*,,g;s/,/\n/g;' | sort | uniq`
#               complete ssh 'n/*/$known_hosts/'
#               unset known_hosts
#       endif

... and rewriting the condition checks in a tcsh-specific manner -
like this:

if ( -r "$i" ) then
	source "$i"

... instead of:

test -f $i
if ($status == 0) then
	source $i

Are these ok to commit?
Should ssh host completion be enabled out-of-box?
Also, we may like to apply similar changes to bash configs - do we?

Alexey V. Vissarionov aka Gremlin from Kremlin
<gremlin  gremlin  ru>
GPG key ID: 0xAB8CF595, keyserver: hkp://

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ