OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => 5x00 General discussions => Topic started by: sentinel on December 08, 2005, 08:22:26 am

Title: .bashrc And .profile Query
Post by: sentinel on December 08, 2005, 08:22:26 am
Hi,

This problem has probably been asked in different ways at different times, but looking through the all posts, I could'nt seem to nail it down.

I have been trying to insert a number of shell aliases. I edited /etc/passwd to change the shell to bash, then created a .bashrc file which contained the aliases.

I rebooted, but it would'nt register the aliases, whether I insert them in .profile or .bashrc

If I issue the command   alias d='ls'  on the command line, then it works.

I may have missed something really obvious, as I have always used tcsh as my shell in the past.


Anyway, I can't seem to figure out the problem.

Any suggestions ?

Rgds
Neil.
Title: .bashrc And .profile Query
Post by: climber on June 20, 2006, 03:38:04 am
I have the same problem as you! I want to set alias permanent like " alias ll=`ls -la`"

Where do I have to entry this data? I did the same entries like Neil but with no success too.  Did someone get this problem solved?


Thanks,
climber
Title: .bashrc And .profile Query
Post by: climber on June 20, 2006, 03:42:03 am
I forgott to day ......

my Device "SL-C3100" with Cacko 1.23

Regards,
climber
Title: .bashrc And .profile Query
Post by: Meanie on June 20, 2006, 03:47:38 am
Quote
I forgott to day ......

my Device "SL-C3100" with Cacko 1.23

Regards,
climber
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131952\"][{POST_SNAPBACK}][/a][/div]

put it into /home/zaurus/.profile

create it if it doesnt exist
Title: .bashrc And .profile Query
Post by: freizugheit on June 20, 2006, 04:50:22 am
Quote
Quote
I forgott to day ......

my Device "SL-C3100" with Cacko 1.23

Regards,
climber
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131952\"][{POST_SNAPBACK}][/a][/div]

put it into /home/zaurus/.profile

create it if it doesnt exist
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131953\"][{POST_SNAPBACK}][/a][/div]

Meanie,

Thanks for the pointer. It works on my SL-5600
Title: .bashrc And .profile Query
Post by: climber on June 20, 2006, 05:25:10 am
Meanie,

thanks for your quick help :-)  now it works!

Maybe you can help me with a similar problem? I use vim very often and the syntax highlighting is very smart. But everytime I start the shell I have to execute the command "export TERM=linux" to activate the syntax highlighting! I put this command to the .profile but with no success.

Do you have a idea how I get this working.


Thanks
climber
Title: .bashrc And .profile Query
Post by: bam on June 20, 2006, 03:37:24 pm
you have a /home/root/.profile? perhaps there? or maybe create a /home/zaurus/.bash_login, that way you can execute whatever during the login? also since your playing you can create a .bash_logout as well to execute scripts on logout, I use it for a script I wrote in python to sort/remove-duplicates in my .bash_history file. Also anyone know how to get the history to work while in the sh shell?