View Single Post
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#2
Originally Posted by choubbi View Post
Hi,

I'm a beginner in command line and I'm a bit lost with Maemo's shell : I'd like to create basic aliases for my N900 (alias ll = 'ls -l', that kind of stuff).
Apparently the default shell doesn't have a .bashrc, so I don't know where to put my aliases.
How to apply the changes afterwards, too ? (sounds like there isn't "source" either)

Thanks
The n900 does not come with bash, but with a much simpler sh compatible shell.

In a terminal, type:
Code:
echo 'alias ll="ls -l"' > /home/user/.profile
You can then type:
Code:
source /home/user/.profile
The source will work. I don't know what your problem was. From then on, opening a new terminal will atomatically read the commands in .profile and the source command not needed.
 

The Following 5 Users Say Thank You to j.s For This Useful Post: