Skip to content

czoczo/BetterBash

Repository files navigation

👉 Visit betterbash.cz0.cz for WebUI configurator! 👈

✨ Features

  • ⚡ Simple installation without dependencies or additional fonts.
  • 🎭 Username (highlighted if root) and hostname.
  • 🎨 Unique host avatar based on hostname. Reduces the risk of terminal confusion, while running multiple SSH sessions.
  • 🔢 Shows number of background processes if more than zero.
  • 📏 Line separating commands output.
  • ⬇️ Shows exit code if other than zero.
  • 🕓 Date and time. Time changes color if exit code other than zero.
  • 📁 Current directory.
  • 🚥 Git status (if current directory inside git repository).
  • 📜 Rapid history search with up/down arrows based on current input.

Preview

⭐ Give a Star!

Support this project by giving it a star. Thanks!

🚀 Install:

with curl

curl -sL https://bb.cz0.cz/vN-y_5uA/getbb.sh | bash -s curl && . ~/.bashrc

with wget

wget -q -O - https://bb.cz0.cz/vN-y_5uA/getbb.sh | bash -s wget && . ~/.bashrc

with openssl (no dependencies needed)

echo -e "GET /vN-y_5uA/getbb.sh HTTP/1.1\r\nHost: bbb-f4hxb4escnacbpe6.westeurope-01.azurewebsites.net\r\nConnection: close\r\n\r\n" \
| openssl s_client -quiet -connect bbb-f4hxb4escnacbpe6.westeurope-01.azurewebsites.net:443 2>/dev/null \
| sed '1,/^\r$/d' | bash -s openssl && . ~/.bashrc

🔧 Uninstall:

bash session needs a restart in order to uninstall to take effect.

with curl

curl -sL https://bb.cz0.cz/vN-y_5uA/removebb.sh | bash -s curl

with wget

wget -q -O - https://bb.cz0.cz/vN-y_5uA/removebb.sh | bash -s wget

with openssl (no dependencies needed)

echo -e "GET /vN-y_5uA/removebb.sh HTTP/1.1\r\nHost: bbb-f4hxb4escnacbpe6.westeurope-01.azurewebsites.net\r\nConnection: close\r\n\r\n" \
| openssl s_client -quiet -connect bbb-f4hxb4escnacbpe6.westeurope-01.azurewebsites.net:443 2>/dev/null \
| sed '1,/^\r$/d' | bash -s openssl && . ~/.bashrc

📊 Star History

Star History Chart

License

GNU General Public License v3.0 or later

See LICENSE to see the full text.

About

A nice way to make Bash prompt more powerful!

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •