Useful dot files for ubuntu/debian bash prompt
(the files do not work properly on git-bash)
The project includes a few . files to be copied in your ~ directory. If you already have a .bashrc file, you can use something like
source ~/dotfiles/.bashrc
source ~/dotfiles/.bash_aliasesIt was created to practice my sh writing skills.
It's tested on latest konsole on Ubuntu, Debian and Archlinux. termite seems to have some issues.
If icons do not work, try setting the font of your console to Hack
- Readable bash prompt: Provides much info without being distracting
- git: Provides a clear overview of the local git repository. The feature is hidden for non-git directories.
- Computer ID: Quick view of the machine's FQDN or Hostname
- Computer's main IP: as it's returned by its routes
- SSH: Indication by the prompt to remind you that you are working remotely
- Useful Aliases: Provides some commonly used aliases for ls, df etc
- Disable parts: By commenting out
- Revise the code to be more modular, separate graphics from info
- git ahead and behind error
- Long delay if primary DNS is not available
- Tom Lawrence @ Tom Lawrence Systems and Flipside Creations for the initial inspiration
- Chris Marsh @ https://github.com/chris-marsh/pureline for his nice scripts and logic
- henrebotha & anowlcalledjosh @ Reddit Bash Community