The project is in progress of refactoring to become a
- Startscreen (standalone)
only.
Other parts are migrated to bash-it
- binaryanomaly prompt theme --> done
- Apt aliases --> done
- Other functions, plugins --> open
-binaryanomaly
---
The version from 15.03.2015 looks like this:
---
- OS type detection support for Linux and OS X
- Cross-platform robust checks
- Hostname (figlets, lolcat supported)
- CPU, RAM info
- Distribution info
- External (public) IP
- SSH connection info
- System info (kernel, architecture)
- File system info
- Last logins
- Random bash comand info (whatis)
- Reboot required check and message on welcome screen and/or in prompt
- extip - Display external (public) ip using dig/opendns
- colors - Display the 256 colors/nr that can be used with bash
---
git clone https://github.com/binaryanomaly/bash_startscreen ~/.bash_startscreen
Add the following to the end of your .bash_profile
in your home directory:
# .bash_startscreen initialization
if [ -f ~/.bash_startscreen/init.sh ]; then
. ~/.bash_startscreen/init.sh
fi
# invoke .bashrc
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
We put this in .bash_profile
and not .bashrc because we only want it to be executed when bash is executed i.e. a user is logging in - aka login shell.
Therefore it may be necessary on Linux to enable an option such as "Run command as a login shell" so that the .bash_profile
file is considered.
- Install homebrew
- Install coreutils
brew install coreutils
to use the more up to date linux coreutils
The following Standard Linux commands are needed:
dig
to determine the public ip via opendnsfree
for ram infodf
for diskspace infolast
for last loginswhatis
for command related infos
The following optional packages are recommended to be installed:
figlet
for big ascii letter hostnamelolcat
to colorize the ascii letter hostnamefortune-mod
for fortune telling
Install them using apt (Linux) or homebrew (Mac)
The script will autodetect if each of those is installed and automatically disable the features if not found.