[9fans] On Linux, what is the rc init file?

2015-08-28 Thread Ryan Gonzalez
Every shell has one. You know, like .bashrc, .profile, etc. What's
plan9port rc's?

-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/


Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread sl
Take a look at $PLAN9/rcmain.

sl



Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Teodoro Santoni
Good afternoon,

On Fri, Aug 28, 2015 at 10:13:26AM -0500, Ryan Gonzalez wrote:
 Every shell has one. You know, like .bashrc, .profile, etc. What's
 plan9port rc's?

Nothing AFAICT. But, when used as login shell or with -l option, it should 
execute on startup the command . $home/lib/profile...

--
Teodoro Santoni

Something is wrong. I don't wanna compile 20 KB of Go code to list files.



Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Staven
On Fri, Aug 28, 2015 at 10:13:26AM -0500, Ryan Gonzalez wrote:
 Every shell has one. You know, like .bashrc, .profile, etc. What's
 plan9port rc's?

It's all there in the manual.

  -l If -l is given or the first character of argument
 zero is -, rc reads commands from
 $home/lib/profile, if it exists, before reading
 its normal input.




Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Teodoro Santoni
On Fri, Aug 28, 2015 at 11:49:41AM -0400, s...@9front.org wrote:
 Take a look at $PLAN9/rcmain.
 
 sl

Well, punch me in the face and call me Suzanne!
That changes everything, because absence of a .bashrc
lookalike was the thing that prevented me from using
rc for everyday shell needs. But I never investigated a lot.
Thank you

--
Teodoro Santoni

Something is wrong. I don't wanna compile 20 KB of Go code to list files.



Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Skip Tavakkolian
make sure $PLAN9/bin is in front in your PATH.  try this:

BIGASSBASHPROMPT$ 9 rc -i


 Thank you!
 
 However, I think rc now hates me for some reason. :/ Watch:
 
 ryan@DevPC-LX:~$ rc # works normally
 % echo Hello, world!
 Hello, world!
 % ryan@DevPC-LX:~$
 ryan@DevPC-LX:~$ export PLAN9=$HOME/stuff/plan9home
 ryan@DevPC-LX:~$ cat $PLAN9/rcmain # rcmain is empty
 ryan@DevPC-LX:~$ rc # does nothing??
 ryan@DevPC-LX:~$ echo $?
 0
 ryan@DevPC-LX:~$
 
 rc -v does nothing, either. If I unset $PLAN9, things work again.
 
 
 On Fri, Aug 28, 2015 at 10:49 AM, s...@9front.org wrote:
 
 Take a look at $PLAN9/rcmain.

 sl


 
 
 -- 
 Ryan
 [ERROR]: Your autotools build scripts are 200 lines longer than your
 program. Something’s wrong.
 http://kirbyfan64.github.io/




Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Ryan Gonzalez
Thank you!

However, I think rc now hates me for some reason. :/ Watch:

ryan@DevPC-LX:~$ rc # works normally
% echo Hello, world!
Hello, world!
% ryan@DevPC-LX:~$
ryan@DevPC-LX:~$ export PLAN9=$HOME/stuff/plan9home
ryan@DevPC-LX:~$ cat $PLAN9/rcmain # rcmain is empty
ryan@DevPC-LX:~$ rc # does nothing??
ryan@DevPC-LX:~$ echo $?
0
ryan@DevPC-LX:~$

rc -v does nothing, either. If I unset $PLAN9, things work again.


On Fri, Aug 28, 2015 at 10:49 AM, s...@9front.org wrote:

 Take a look at $PLAN9/rcmain.

 sl




-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/


Re: [9fans] On Linux, what is the rc init file?

2015-08-28 Thread Ryan Gonzalez
YES!! That was it! My plan9home directory didn't contain a bin folder; that
was somewhere else. When I symlinked it there, it worked! Thank you!


On Fri, Aug 28, 2015 at 11:37 AM, Skip Tavakkolian 9...@9netics.com wrote:

 make sure $PLAN9/bin is in front in your PATH.  try this:

 BIGASSBASHPROMPT$ 9 rc -i


  Thank you!
 
  However, I think rc now hates me for some reason. :/ Watch:
 
  ryan@DevPC-LX:~$ rc # works normally
  % echo Hello, world!
  Hello, world!
  % ryan@DevPC-LX:~$
  ryan@DevPC-LX:~$ export PLAN9=$HOME/stuff/plan9home
  ryan@DevPC-LX:~$ cat $PLAN9/rcmain # rcmain is empty
  ryan@DevPC-LX:~$ rc # does nothing??
  ryan@DevPC-LX:~$ echo $?
  0
  ryan@DevPC-LX:~$
 
  rc -v does nothing, either. If I unset $PLAN9, things work again.
 
 
  On Fri, Aug 28, 2015 at 10:49 AM, s...@9front.org wrote:
 
  Take a look at $PLAN9/rcmain.
 
  sl
 
 
 
 
  --
  Ryan
  [ERROR]: Your autotools build scripts are 200 lines longer than your
  program. Something’s wrong.
  http://kirbyfan64.github.io/





-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/