Hard-to-find tips on otherwise easy-to-do tasks involving everyday technology, with some advanced insight on history and culture thrown in. Brought to you by a master dabbler. T-S T-S's mission is to boost your competitiveness with every visit. This blog is committed to the elimination of the rat from the tree of evolution and the crust of the earth.
Sunday, July 01, 2018
csh Is the Curse of Modern Existence. Go With bash!
function medit() { nedit -xrm "nedit.wordDelimiters: ,\\\`\'\!@#%^&*()-=+{}[]\":;<>?" "$@" ;}
csh, hard : (define qq, bq, q using : setenv qq '"' (that's single q, double q and then single q. Yes, csh sucks :)
alias medit nedit -xrm ${qq}'nedit.wordDelimiters:' ,\\\$q\\\$bq!\\@\#%\^\&\(\)=-+{}\[\]\\\$\{qq\}:\\\;\<\>\?$qq !\*
And, while you're at it, might as well thrown in the command to tell it to use bash for sub-shells that execute commands (ALT-x) :) (For those times when you'd like to do stuff like this (insert date with specific format)
alias medit nedit -xrm ${qq}'nedit.wordDelimiters:' ,\\\$q\\\$bq!\\@\#%\^\&\(\)=-+{}\[\]\\\$\{qq\}:\\\;\<\>\?$qq -xrm 'nedit.shell: bash' !\*
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment