maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   .zshrc for N900 (updated, now works for me[tm]) (https://talk.maemo.org/showthread.php?t=68685)

Char 2011-02-24 14:50

Re: .zshrc for N900 (updated, now works for me[tm])
 
A safer way of doing this would be to change the XTerm launch script to run "osso-xterm /bin/zsh". That way you're nowhere near risking a brick. I'm not taking any more risks after I bricked the first time, so this is how I have it running right now (with the default shell set as sh) and I have no problem. Thanks a lot, zsh makes using the terminal way less of a pain :P

robotanarchy 2013-05-18 16:33

Re: .zshrc for N900 (updated, now works for me[tm])
 
Thanks for the guide, avx. I'm happily using zsh now with grml's config (however, you'll want to delete everything with "limit" in the config, as it produces a warning, and also "ls", because it calls the busybox with wrong parameters).

Oh and I also almost bricked the phone... good to have the recovery console installed :) I've then changed the shell back to /bin/sh in /etc/passwd :)

I recommend that you don't set the shell for any user by default. Let the user do this, if he thinks that he's ready.

I'll go with Char's solution to change the launcher. /bin/zsh can also be set in PuTTY as start command, in case anyone uses that too :)



EDIT: works great now! I've added some aliases, so I'll always have zsh instead of bash (you might need to customize that if you use gainroot, I don't):


/home/user/.zshrc.local
alias su="sudo su -c /bin/zsh"
/root/.zshrc.local
alias suu="su user -c /bin/zsh"

antifarben 2013-07-04 20:39

Re: .zshrc for N900 (updated, now works for me[tm])
 
Did you use the zsh binaries from http://talk.maemo.org//showthread.php?p=1356894
?


All times are GMT. The time now is 20:01.

vBulletin® Version 3.8.8