|
||||
Quick, simple tcsh tips for beginners
New to tcsh? Already familiar with bash? Sure, you could easily read through the manpages for tcsh(1), but here are a few quick and easy tips to help you feel right at home.
----------------------------------------- Enable Tab command completion One approach (or simply edit with your favorite editor): Code:
echo 'set autolist' >> ~/.cshrc Use this (or simply edit with your favorite editor): Code:
echo 'setenv CLICOLOR' >> ~/.cshrc In Bourne shells (like bash), this is accomplished using: Code:
. file_here Code:
source file_here Jump around the command line So, you typed a long command (but haven't hit enter yet), and now you need get back to the very beginning of the command line -- simple: use Ctrl + A. Now you fixed that typo at the very beginning of the command line, and you want to get back to the end of it to keep typing -- simple: use Ctrl + E. Write a script that utilizes your cool new tcsh shell I had to tack this one on, just in case. Use Bourne shells for scripting. Do not use csh / tcsh for scripting. The reasons are exhaustively enumerated here: http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ ----------------------------------------- Hopefully these tips have just made you slightly more productive within tcsh. Have fun with your new shell!
__________________
Kill your t.v. Last edited by anomie; 2nd May 2008 at 03:48 PM. |
|
|||
Linux ls colors in tcsh.
Code:
setenv CLICOLOR YES setenv LSCOLORS ExGxFxdxCxDxDxhbadExEx |
|
||||
grep colorized output.
in tcsh Code:
setenv GREP_OPTIONS --color=auto setenv GREP_COLOR 32 a list of colors can be found here at the bottom of the page. in bash use export. here is some output to see how it's working: Code:
> setenv GREP_OPTIONS --color=auto > setenv GREP_COLOR 32 > dmesg -a | grep key keymap keymap file ".iso" not found > v |
|
|||
not so simple but can save time.
........... find several huge .cshrc; print them, and add any cool features to your own .......... especially the save-history-across-reboots so you do not have to re-read man pages next week, next year etc |
|
|||
Hello,
Is there an online repository of such .cshrc/.tcshrc files?
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14) |
|
||||
you might wanna try this dotfiles.com/
Lot's of dotfiles for all sorts of apps. I browsed it once and found very interesting and complex .cshrc files. enjoy it. all the best, v |
|
|||
Quote:
__________________
www.tacoshack.xyz |
|
||||
I only learned this yesterday: if you do CTRL+x followed by a *, the current commandline is glob patterns are expanded.
Another (fairly new) feature is the 'autorehash' settings, which means you no longer have to 'rehash'. Quote:
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
Well said sir, well said indeed.
__________________
www.tacoshack.xyz |
Tags |
completion, csh, tab, tcsh |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A simple question | Mr-Biscuit | Off-Topic | 1 | 16th April 2009 04:26 PM |
History not saved in tcsh | RandomSF | FreeBSD General | 8 | 9th December 2008 11:59 PM |
Simple Firewall with PF | jones | FreeBSD General | 3 | 7th November 2008 02:02 AM |
TCSH: 'set promptchars' not effecting su like it should | JMJ_coder | General software and network | 4 | 9th July 2008 09:51 PM |
TCSH - getting to start of line | maxrussell | FreeBSD General | 3 | 4th July 2008 11:55 AM |