Page 1 of 1

Tiny issue with console.

Posted: 17. Sep 2011, 15:57
by clauslack
Tiny issue with console. (XFCE 13.37/LXDE 13.37)

When run console, this show
claudio[~]$
but I like, with
su - claudio

like this
claudio@darkstar:~$
In this console I can navigate with mc across directory, I can use "v" alias, like Slackware console.
How can create a shorcut for this type of console? without type the password.

Thanks

Re: Tiny issue with console.

Posted: 17. Sep 2011, 16:56
by djemos
if i understood well put these in ~/.bashrc

export PS1='\u@\h:\w\$'
export PAGER="most"

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

The line export PS1='\u@\h:\w\$' do what you want.

Re: Tiny issue with console.

Posted: 17. Sep 2011, 18:05
by clauslack
No, this only change the prompt.
Example:
With mc I change directory to root (/), but when exit mc, the current directory still is /home/claudio.
I can't navigate with mc and alias "v" is not setting.

With "su - claudio", I can change the current directory with mc. But I must input the password...

Regards

Re: Tiny issue with console.

Posted: 18. Sep 2011, 11:39
by djemos
I don't think you can avoid input the password.