• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Shell's appearance has changed after rooting!

Hi! after rooting I have a trivial problem.
(After rooting I moved some important files and installed busybox ,
and tried to install gcc on android and failed maybe that caused the problem but I'm not sure even whether I lost some files or not)

Before rooting shell prompt looked like this:
username@a7ltelgt:/ #

After rooting looks like this:
/ $

But when I type 'su' command It looks normally for user 'root':
root@a7ltelgt:/ #

Variable PS1 of 'root' is this:
$(precmd)$USER@$HOSTNAME:${PWD:-?} #

But of normal user (first appearing user after 'adb shell'):
\w \$

So I tried to change PS1 of normal user by typing
export PS1=$(precmd)$USER@$HOSTNAME:${PWD:-?} #

But does not worked:
/system/bin/sh: precmd: Permission denied

I tried to locate precmd but I couldn't find the file named precmd anywhere.

How can I fix my shell?
 
Back
Top Bottom