Author Topic: .bashrc And .profile Query  (Read 5895 times)

sentinel

  • Newbie
  • *
  • Posts: 41
    • View Profile
.bashrc And .profile Query
« 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.

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
.bashrc And .profile Query
« Reply #1 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

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
.bashrc And .profile Query
« Reply #2 on: June 20, 2006, 03:42:03 am »
I forgott to day ......

my Device "SL-C3100" with Cacko 1.23

Regards,
climber

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
.bashrc And .profile Query
« Reply #3 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
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
.bashrc And .profile Query
« Reply #4 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

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
.bashrc And .profile Query
« Reply #5 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

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
.bashrc And .profile Query
« Reply #6 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?
« Last Edit: June 20, 2006, 03:41:14 pm by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder