Tiny issue with console.

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
clauslack
Posts: 66
Joined: 25. Apr 2011, 23:17

Tiny issue with console.

Post 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
djemos
Salix Warrior
Posts: 1466
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Tiny issue with console.

Post 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.
clauslack
Posts: 66
Joined: 25. Apr 2011, 23:17

Re: Tiny issue with console.

Post 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
djemos
Salix Warrior
Posts: 1466
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Tiny issue with console.

Post by djemos »

I don't think you can avoid input the password.
Post Reply