Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'OSX is over-organized' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
OSX is over-organized
Authored by: groue on Oct 08, '01 10:44:37AM

... Have you ever read discussions about name of localhost ?
It's so hard learning that /etc/hosts is replaced by NetInfo...
Well, if you want to secure tcsh, here is a better way do to it.

If you stare at tcsh starting up process, you can see in
/usr/share/init/tcsh all startup scripts. If you edit them,
you can see that .mine files are automatically loaded, for all
users or only for one !!

That's why I added in /usr/share/init/tcsh (for ALL users)
the files :

----- start of aliases.mine file
##
# Default Aliases add-ons
# Gw on 23/09/01
##

#
# some secure aliases missing in /usr/share/init/tcsh/aliases
#

# ask before removing
alias rm 'rm -i'

# ask before replacing
alias mv 'mv -i'
alias cp 'cp -i'

#
# some usage aliases
#

# display logical path instead of physical path.
# Use /bin/pwd for physical path
alias pwd 'pwd -L'

# less instead of more
alias more less

# clear screen
alias c screen

# make ll to quit automatically when EOF is reached
alias ll 'ls -lag !* | less -E'
----- end of aliases.mine file

I also added some usefull stuff in the same directory

----- start of environment.mine
##
# Default Environment add-ons
# Gw on 23/09/01
##

# replace more by less for man command
setenv PAGER less

# less options
setenv LESS "-eMr"
----- end of environment.mine

And finally a different completion behavior, because I like to type
nothing except the first letters.

----- start of completion.mine
##
# completion add-ons
# Gw on 23/09/2001
##

# tab expand completion
# Use ^D for displaying list of matches
bindkey "^I" complete-word-fwd
----- end of completion.mine

Hope this helps :o)
Gwendal Roué (with a é hu ?)



[ Reply to This | # ]