Tiny Core Linux
Tiny Core Extensions => TCE News => TCE 1.x => Topic started by: Jason W on April 05, 2009, 11:10:59 AM
-
Added a basic bashrc for history keeping and environment variables. Ideas for the default bashrc are welcome.:
Title: bash.tce
Description: bash for tinycore
Version: 3.2
Author: Chet Ramey
Original-site: www.gnu.org/software/bash/
Copying-policy: GPL
Size: 384K
Extension_by: Jason W
Comments: Bash is a shell for Linux.
----------
Change-log: 2008/07/23 First version
2008/09/09 Removed the symlink /bin/sh -> /bin/bash.
/bin/sh needs to remain pointing to busybox ash.
This extension is PPI compatible.
2008/11/27 Recompiled for 486 and size optimization.
2009/02/02 Made PPI compatible.
Current: 2009/04/05 Added basic bashrc
Title: bash.tcz
Description: bash for tinycore
Version: 3.2
Author: Chet Ramey
Original-site: www.gnu.org/software/bash/
Copying-policy: GPL
Size: 384K
Extension_by: Jason W
Comments: Bash is a shell for Linux.
----------
Change-log: 2008/07/23 First version
2008/09/09 Removed the symlink /bin/sh -> /bin/bash.
/bin/sh needs to remain pointing to busybox ash.
This extension is PPI compatible.
2008/11/27 Recompiled for 486 and size optimization.
2009/02/02 Made PPI compatible.
Current: 2009/04/05 Added basic bashrc
-
All I have in my bashrc are aliases and PS1. The PS1 changes if I'm root, but I don't know if that would be useful for a default. I also don't know for sure if this still needed for my setup =o)
I'd done it originally because I couldn't see any difference between regular and root terms, but it may have changed since busybox was updated.
A couple of my aliases might be useful for the general public, but I wouldn't say they're worth adding as defaults.
alias :q='clear; exit' # because I keep thinking I'm in Vim =o)
alias path='echo -e ${PATH//:/\\n}' # displays directories in $PATH on separate lines
alias ping='ping -c 4' # keeps you from needing to manually stop it
I haven't used ping in TC, so that might not work...might need a "sudo"
-
alias ping='ping -c 4' # keeps you from needing to manually stop it
if you wanted to use ping without that option, how would you turn it off (other than setting 4 to a very large number or removing it from bashrc)
-
By using the full path, or using "busybox ping"
-
You can also bypass aliases by escaping them: \ping
-
very cool, thanks.