Tiny Core Base > TCB Q&A Forum

Enable user profile

(1/3) > >>

cjgau:
Hi,

Hope this is the place for a newbie's question.

I like to use the aliases ll and la in the .profile, but didn't know how to enable it.

TIA, TC is a clean and wonderful distro!

^thehatsrule^:
You can set the ENV variable.  For more info, see http://forum.tinycorelinux.net/index.php?topic=196.0

Currently, aliases in .profile will be available only on a VT console.

cjgau:
Thank you, hats.

For now I just use your code "aterm -e sh --login" saved in Home directory, and double clicks from emelfn2.

Thanks again for your prompt response.

florian:
Robert and Team, I would suggest that by default TC would move its alias definition to a ~/.ashrc file and include this also from ~/.profile. This would allow to have same aliases in both the initial login shell and the non-login shells.

Here's an extract of my  ~/.profile:

--- Code: ---if [ -n "$BASH_VERSION" ]; then
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
else
    export ENV="$HOME/.ashrc"   
    if [ -f "$HOME/.ashrc" ]; then
        . "$HOME/.ashrc"
    fi
fi

--- End code ---

roberts:
Good suggestion florian, will implement.

Navigation

[0] Message Index

[#] Next page

Go to full version