Tiny Core Extensions > TCE 1.x
bash
Jason W:
Added a basic bashrc for history keeping and environment variables. Ideas for the default bashrc are welcome.:
--- Code: ---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
--- End code ---
--- Code: ---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
--- End code ---
mikshaw:
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"
tobiaus:
--- Quote from: mikshaw on April 05, 2009, 12:03:31 PM ---alias ping='ping -c 4' # keeps you from needing to manually stop it
--- End quote ---
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)
curaga:
By using the full path, or using "busybox ping"
mikshaw:
You can also bypass aliases by escaping them: \ping
Navigation
[0] Message Index
[#] Next page
Go to full version