Re: cshrc to bashrc??

2011-01-01 Thread Polytropon
On Fri, 31 Dec 2010 13:15:45 -0800, Gary Kline kl...@thought.org wrote: Anybody know if there is a utility that transforms the /root/.cshrc into a bash RC file?After decades, I'm giving up on the csh stuff. Need something simpler. As far as I know, there is no automatic

Re: cshrc to bashrc??

2011-01-01 Thread Gary Kline
this *is* tomorrow, then in around some N hours. S'all, folks! -g On Sat, Jan 01, 2011 at 11:01:31AM +0100, Polytropon wrote: On Fri, 31 Dec 2010 13:15:45 -0800, Gary Kline kl...@thought.org wrote: Anybody know if there is a utility that transforms the /root/.cshrc

Re: cshrc to bashrc??

2011-01-01 Thread Chris Brennan
Note that csh does automatically use % or # according to the first setting. I'm not sure how bash handles this. man bash and search for PROMPTING, everything you can pass PS1 is there # is \# the command number of this command I don't see how a '%' is handled tho, what does it do is

Re: cshrc to bashrc??

2011-01-01 Thread Polytropon
On Sat, 1 Jan 2011 10:56:24 -0500, Chris Brennan xa...@xaerolimit.net wrote: Note that csh does automatically use % or # according to the first setting. I'm not sure how bash handles this. man bash and search for PROMPTING, everything you can pass PS1 is there # is \# the

Re: cshrc to bashrc??

2011-01-01 Thread Gary Kline
On Sat, Jan 01, 2011 at 11:01:31AM +0100, Polytropon wrote: On Fri, 31 Dec 2010 13:15:45 -0800, Gary Kline kl...@thought.org wrote: Anybody know if there is a utility that transforms the /root/.cshrc into a bash RC file?After decades, I'm giving up on the csh stuff. Need

cshrc to bashrc??

2010-12-31 Thread Gary Kline
Anybody know if there is a utility that transforms the /root/.cshrc into a bash RC file?After decades, I'm giving up on the csh stuff. Need something simpler. tia, guys, and hope 2011 is better for all of us! gary -- Gary Kline kl...@thought.org

.cshrc usage

2010-06-14 Thread Aiza
I want to change the console prompt for all users that get accounts created. I added it to /etc/csh.cshrc which says it a system-wide .cshrc file. But after adding a new user with pw command with -m and logging in as the user name the prompt is still the old way. Do I have to add it to /usr

Re: .cshrc usage

2010-06-14 Thread Polytropon
On Mon, 14 Jun 2010 18:23:52 +0800, Aiza aiz...@comclark.com wrote: I want to change the console prompt for all users that get accounts created. I added it to /etc/csh.cshrc which says it a system-wide .cshrc file. But after adding a new user with pw command with -m and logging

adding output lines to my .cshrc breaks sftp and scp ...

2010-06-08 Thread Goh Sanda
I added a few lines to the bottom of my standard FreeBSD .cshrc file: echo w echo Just to show me what is going on each time I log in. The problem is, when I try to scp a file to the system, I get 'w' output echo'd to me, and no actual scp. sftp fails as well - I can no longer log in via

Re: adding output lines to my .cshrc breaks sftp and scp ...

2010-06-08 Thread Polytropon
On Tue, 8 Jun 2010 16:41:54 -0700 (PDT), Goh Sanda x4500f...@yahoo.com wrote: I added a few lines to the bottom of my standard FreeBSD .cshrc file: echo w echo Just to show me what is going on each time I log in. Use ~/.login for command that should be executed after you log

Re: Adding an alias to .cshrc

2009-12-30 Thread Jerry McAllister
On Tue, Dec 29, 2009 at 07:50:21PM -0500, Steve Bertrand wrote: Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm Your problem is quoting the command. It has multiple parts with white space, so it all needs to be quoted. Something

Re: Adding an alias to .cshrc

2009-12-30 Thread Jerry McAllister
On Tue, Dec 29, 2009 at 08:07:35PM -0500, Steve Bertrand wrote: Glen Barber wrote: Hi Steve On Tue, Dec 29, 2009 at 7:50 PM, Steve Bertrand st...@ibctech.ca wrote: Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm Try

Adding an alias to .cshrc

2009-12-29 Thread Steve Bertrand
Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm ...so that I have an easy way to remove the temp files left by svn. After adding the alias, logging out and then back in, I get an error stating: acct-dev: ISP-RADIUS % srm srm: Command

Re: Adding an alias to .cshrc

2009-12-29 Thread Olivier Nicole
Hi, Is this a problem with the pipe in the alias directive? The command works on the CLI, as I literally copy/pasted it into the .cshrc file. I would think so. What about: alias srm /usr/bin/find . -name *~ -delete Best regards, Olivier

Re: Adding an alias to .cshrc

2009-12-29 Thread Glen Barber
Hi Steve On Tue, Dec 29, 2009 at 7:50 PM, Steve Bertrand st...@ibctech.ca wrote: Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm   find . -name *~ | xargs rm Try enclosing it in quotes, such as: alias srm find . -name \*~\ | xargs rm Regards, -- Glen

Re: Adding an alias to .cshrc

2009-12-29 Thread Steve Bertrand
Glen Barber wrote: Hi Steve On Tue, Dec 29, 2009 at 7:50 PM, Steve Bertrand st...@ibctech.ca wrote: Hi all, happy holidays! I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm Try enclosing it in quotes, such as: alias srm find . -name \*~\ | xargs

Re: Adding an alias to .cshrc

2009-12-29 Thread George Davidovich
On Tue, Dec 29, 2009 at 07:50:21PM -0500, Steve Bertrand wrote: I want to add an alias to my .cshrc file: alias srm find . -name *~ | xargs rm No need for xargs: alias srm find . -name '*~' -exec rm {} + or alias srm find . -name '*~' -delete ...so that I have an easy way to remove

Re: .cshrc History missing

2009-08-10 Thread Matthew Seaman
that this was happening. I have earlier CURRENT 8 running on a couple of machines and they never acted this way. This is root that is doing this on my test box. set history = 100 set savehistory = 100 are in the .cshrc file. I'll look in /etc/csh.cshrc Thanks... Yeah. The history mechanism

.cshrc History missing

2009-08-09 Thread Al Plant
have been using FreeBSD for a very long time.. since FreeBSD 2.* . Anyone have any ideas what I should check for either with hardware or in .cshrc or elsewhere? Thanks... ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50

Re: .cshrc History missing

2009-08-09 Thread Polytropon
Allthough I'm not familiar with the particular problem you described, I observed that the history sometimes (!) does not survive a reboot. It may have to do with a situation where more than one shell is running. Idea: The last shell closed (even forced) saves its history, so the history of the

Re: .cshrc History missing

2009-08-09 Thread Al Plant
that this was happening. I have earlier CURRENT 8 running on a couple of machines and they never acted this way. This is root that is doing this on my test box. set history = 100 set savehistory = 100 are in the .cshrc file. I'll look in /etc/csh.cshrc Thanks... ~Al Plant - Honolulu, Hawaii - Phone

why can't I use $1 in .cshrc ?

2008-06-26 Thread Juri Mianovich
I am trying to use this alias in my root .cshrc file: grep $1 /some/file but .cshrc _refuses_ to expand $1 as a proper variable (in this case, the first argument to the alias...) I _think_ it's because $1 is being interpreted as a argument to csh _itself_ when it runs .cshrc ... but maybe

Re: why can't I use $1 in .cshrc ?

2008-06-26 Thread Derek Ragona
At 07:04 AM 6/26/2008, Juri Mianovich wrote: I am trying to use this alias in my root .cshrc file: grep $1 /some/file but .cshrc _refuses_ to expand $1 as a proper variable (in this case, the first argument to the alias...) I _think_ it's because $1 is being interpreted as a argument

Re: why can't I use $1 in .cshrc ?

2008-06-26 Thread Pietro Cerutti
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Juri Mianovich wrote: | I am trying to use this alias in my root .cshrc file: | | grep $1 /some/file | | but .cshrc _refuses_ to expand $1 as a proper variable (in this case, the first argument to the alias...) | | I _think_ it's because $1

Re: why can't I use $1 in .cshrc ?

2008-06-26 Thread N. Raghavendra
At 2008-06-26T05:04:52-07:00, Juri Mianovich wrote: I am trying to use this alias in my root .cshrc file: grep $1 /some/file but .cshrc _refuses_ to expand $1 as a proper variable (in this case, the first argument to the alias...) I _think_ it's because $1 is being interpreted

Re: setting an alias in .cshrc with parentheses in it ...

2005-04-08 Thread Volodymyr Kostyrko
Joe Schmoe wrote: I often run this command: lynx -useragent blah blah (compatible; MSIE blah blah) Note that the custom referrer string that I set includes parentheses. So, to save time, I added this line to my .cshrc: alias lynx lynx -useragent blah blah (compatible; MSIE blah blah) However, when

setting an alias in .cshrc with parentheses in it ...

2005-04-07 Thread Joe Schmoe
Hello, I often run this command: lynx -useragent blah blah (compatible; MSIE blah blah) Note that the custom referrer string that I set includes parentheses. So, to save time, I added this line to my .cshrc: alias lynx lynx -useragent blah blah (compatible; MSIE blah blah) However, when I

Re: .cshrc

2005-03-26 Thread Gert Cuykens
I dont have colors :( How do you turn off the tab beep ? # $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $ # # .cshrc - csh resource script, read at beginning of execution by each shell # # see also csh(1), environ(7). # alias h history 25 alias j jobs

Re: .cshrc

2005-03-26 Thread Jerry McAllister
Is .profile read by every shell ? No. .profile is read up by the sh shell and its derivatives. When the csh shell and its derivatives such as tcsh starts, its reads up .cshrc.The effect is somewhat the same, but it uses the syntax is for csh. The syntax for .profile is for sh

Re: .cshrc

2005-03-26 Thread cpghost
On Sat, Mar 26, 2005 at 10:12:26AM -0500, Jerry McAllister wrote: The csh shell of more likely not, tcsh, is more friendly for interacticve use than the sh shell.Those who like the sh type syntax nowdays use the derivative bash as their shell. It is also more interactive friendly than

Re: .cshrc

2005-03-26 Thread Giorgos Keramidas
On 2005-03-26 16:20, [EMAIL PROTECTED] wrote: On Sat, Mar 26, 2005 at 10:12:26AM -0500, Jerry McAllister wrote: The csh shell of more likely not, tcsh, is more friendly for interacticve use than the sh shell. Those who like the sh type syntax nowdays use the derivative bash as their shell. It

Re: .cshrc

2005-03-26 Thread Gert Cuykens
On Sat, 26 Mar 2005 13:59:18 +0100, Gert Cuykens [EMAIL PROTECTED] wrote: I dont have colors :( How do you turn off the tab beep ? # $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $ # # .cshrc - csh resource script, read at beginning of execution by each shell

Re: .cshrc

2005-03-26 Thread exp
On Sun, Mar 27, 2005 at 01:19:17AM +0100, Gert Cuykens wrote: On Sat, 26 Mar 2005 13:59:18 +0100, Gert Cuykens [EMAIL PROTECTED] wrote: I dont have colors :( How do you turn off the tab beep ? # $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $ # # .cshrc - csh

.cshrc

2005-03-25 Thread Gert Cuykens
This is the shell config file right ? I created a new user and put a .cshrc in his home directory but nothing happens ? FX-53# pw user show gert gert:*:1001:0::0:0:gert:/usr/home/gert:/bin/sh FX-53# pwd /usr/home/gert FX-53# ls -all total 609272 drwxr-xr-x 3 gert wheel512 Mar 26 00:18

Re: .cshrc

2005-03-25 Thread Christopher Nehren
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2005-03-25, Gert Cuykens scribbled these curious markings: This is the shell config file right ? I created a new user and put a .cshrc in his home directory but nothing happens ? FX-53# pw user show gert gert:*:1001:0::0:0:gert:/usr/home/gert

Re: .cshrc

2005-03-25 Thread Erik Trulsson
On Sat, Mar 26, 2005 at 12:32:59AM +0100, Gert Cuykens wrote: This is the shell config file right ? .cshrc is *a* shell config file. To be more precise it is the file that csh/tcsh (usually) reads in when started. (For details on exactly what files is read at startup by this shell read the csh

Re: .cshrc

2005-03-25 Thread Gert Cuykens
I created a new user and put a .cshrc in his home directory but nothing happens ? Why should anything happen? What did you expect to happen? This :) FX-53# cat .cshrc # $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $ # # .cshrc - csh resource script, read

Re: .cshrc

2005-03-25 Thread Chris
Gert Cuykens wrote: I created a new user and put a .cshrc in his home directory but nothing happens ? Why should anything happen? What did you expect to happen? This :) FX-53# cat .cshrc # $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $ # # .cshrc - csh

Re: .cshrc

2005-03-25 Thread Erik Trulsson
On Sat, Mar 26, 2005 at 12:55:17AM +0100, Gert Cuykens wrote: I created a new user and put a .cshrc in his home directory but nothing happens ? Why should anything happen? What did you expect to happen? This :) FX-53# cat .cshrc [snip] That was not decription of anything

Re: .cshrc

2005-03-25 Thread Gert Cuykens
On Sat, 26 Mar 2005 01:23:11 +0100, Erik Trulsson [EMAIL PROTECTED] wrote: On Sat, Mar 26, 2005 at 12:55:17AM +0100, Gert Cuykens wrote: I created a new user and put a .cshrc in his home directory but nothing happens ? Why should anything happen? What did you expect to happen

Re: .cshrc

2005-03-25 Thread Gert Cuykens
Is .profile read by every shell ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: .cshrc

2005-03-25 Thread Gert Cuykens
Is .profile read by every shell ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: .cshrc

2005-03-25 Thread Christopher Nehren
) wouldn't be able to log in. This was alluded to in my post wherein I mentioned that sh probably wouldn't be able to read the .cshrc file (depending upon what you've placed in it). Best Regards, Christopher Nehren -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCRLM/k/lo7zvzJioRAk

Re: .cshrc

2005-03-25 Thread Abu Khaled
On Sat, 26 Mar 2005 01:47:13 +0100, Gert Cuykens [EMAIL PROTECTED] wrote: Is .profile read by every shell ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to

Re: .cshrc

2005-03-25 Thread Gert Cuykens
in. This was alluded to in my post wherein I mentioned that sh probably wouldn't be able to read the .cshrc file (depending upon what you've placed in it). I would like one with allot of colors and a double tab completion that shows every command or file :) Is bash the only one that does

Re: .cshrc

2005-03-25 Thread Kevin Kinsey
, a .shrc for sh, the original Bourne shell. (You do know that bash is an acronym for Bourne Again SHell, right? A play on the English translation of Jesus' words to Nicodemus in John III:iii: Except a man be born again ... which was probably particularly funny in America in the late 1970s...) .cshrc

Re: .cshrc

2005-03-25 Thread FreeBSD questions mailing list
I would like one with allot of colors and a double tab completion that shows every command or file :) Is bash the only one that does that or can csh do that too ? Hey Gert, I use tcsh and have these variables in my .cshrc: setenv CLICOLOR_FORCE 1 set prompt = '[EMAIL PROTECTED]:%b%~%# ' set

Re: .cshrc

2005-03-25 Thread Christopher Nehren
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2005-03-26, Gert Cuykens scribbled these curious markings: I would like one with allot of colors and a double tab completion that shows every command or file :) Uhm, colours where? And why follow Bash's silly example of requiring two tabs when

Re: .cshrc

2005-03-25 Thread Christopher Nehren
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2005-03-26, Kevin Kinsey scribbled these curious markings: --- and I suppose that's why there's no .tcshrc AFAIK on FBSD. There's no .tcshrc file, but if you read the manual for csh you'll see that there are semantics for processing both files,

/.cshrc and /.profile

2004-02-12 Thread h0444lp6
Dear list What are the /.cshrc and /.profile files for? Since /etc holds the system wide conf files and ~ the user specific ones I do not understand why there are the ones in /. TIA ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman

Re: /.cshrc and /.profile

2004-02-12 Thread Jonathan Chen
On Fri, Feb 13, 2004 at 12:56:01AM +0800, h0444lp6 wrote: Dear list What are the /.cshrc and /.profile files for? Since /etc holds the system wide conf files and ~ the user specific ones I do not understand why there are the ones in /. When the machine boots into single-user mode

convert .cshrc to .bashrc

2004-01-30 Thread Didier Wiroth
Hi, I'm almost new to freebsd about a few month now. It took me some while to learn how to customize my .cshrc file. I would like to switch to bash2 now. 1) I was wondering if there is a tool (from the ports collection) that can automatically convert my customized .cshrc to a .bashrc

Re: convert .cshrc to .bashrc

2004-01-30 Thread Robert Barten
On Sat, Jan 31, 2004 at 12:11:54AM +0100, Colin J. Raven wrote: Just google sample .bashrc that should yield something you can begin with. The two aren't *that* different y'know, so don't get stressed about it. + 2) Is there a skeleton (dot.bashrc) file somewhere I can + download

Re: convert .cshrc to .bashrc

2004-01-30 Thread Daniela
On Friday 30 January 2004 23:32, Robert Barten wrote: On Sat, Jan 31, 2004 at 12:11:54AM +0100, Colin J. Raven wrote: Just google sample .bashrc that should yield something you can begin with. The two aren't *that* different y'know, so don't get stressed about it. + 2) Is there a

RE: convert .cshrc to .bashrc

2004-01-30 Thread Colin J. Raven
+ On Friday 30 January 2004 23:32, Robert Barten wrote: + On Sat, Jan 31, 2004 at 12:11:54AM +0100, Colin J. Raven wrote: + Just google sample .bashrc that should yield something + you can begin + with. The two aren't *that* different y'know, so don't + get stressed + about it. + +

How to tweak the contents of the initial .cshrc file

2002-07-18 Thread Raja Velu
Hi All, I am looking to customize the post-install process of a custom FreeBSD 4.6 server. I would like to install some custom packages when a root user logs in to the system for the first time after a fresh install. If I knew where in the install CD1, the actual creation of root's .cshrc

Re: How to tweak the contents of the initial .cshrc file

2002-07-18 Thread Adam Weinberger
time after a fresh install. If I knew where in the install CD1, the actual creation of root's .cshrc takes place, I thought I could add some custom script to that and take care of my post-install configuration process. If that sounds like too round-about a way to achieve what I want, please