bash, easy :
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' !\*
No comments:
Post a Comment