Tiny Core Base > TCB Q&A Forum

Enable user profile

<< < (2/3) > >>

^thehatsrule^:
Is checking for those bash specifics needed?  Usually the regular user profile in .bash_profile for bash is used anyways.  (perhaps the bash extension should include one if it doesn't)

Also, just to change a bit, having setting ENV inside the if statement might be better:

--- Code: ---if [ -f "$HOME/.ashrc" ]; then
  export ENV="$HOME/.ashrc"
  . "$HOME/.ashrc"
fi
--- End code ---

florian:
yes ^thehatsrule^, it's better how you wrote it for TC. My own .profile has bash stuff because I usually I keep only one home directory for several distros.

One more detail: i see there are by default in TC some alias for mv (to mv -i) and rm (to rm -i). For similar safety reason, I would suggest to also alias cp to cp -i.

tobiaus:

--- Quote from: florian on January 08, 2009, 11:33:22 AM ---One more detail: i see there are by default in TC some alias for mv (to mv -i) and rm (to rm -i). For similar safety reason, I would suggest to also alias cp to cp -i.
--- End quote ---

before you do that, i'd make the existing aliases (aliasi?) do what they're intended to:

echo "" > tmpy
echo "" > tmpz
mv tmpy tmpz

does not show any presence of -i that i know of.

^thehatsrule^:

--- Quote from: tobiaus on January 08, 2009, 01:49:59 PM ---
--- Quote from: florian on January 08, 2009, 11:33:22 AM ---One more detail: i see there are by default in TC some alias for mv (to mv -i) and rm (to rm -i). For similar safety reason, I would suggest to also alias cp to cp -i.
--- End quote ---

before you do that, i'd make the existing aliases (aliasi?) do what they're intended to:

echo "" > tmpy
echo "" > tmpz
mv tmpy tmpz

does not show any presence of -i that i know of.

--- End quote ---
See the 2nd post in this thread.

tobiaus:

--- Quote from: ^thehatsrule^ on January 08, 2009, 01:57:45 PM ---See the 2nd post in this thread.
--- End quote ---

oic... well spotted. yes in the vt, they appear to be there. since i use the vt sometimes, i'll know i have the option for safer commands without issuing -i to them, thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version