Transform your terminal output with stunning colored borders! A lightweight, dependency-free bash utility that makes your scripts, logs, and command outputs visually organized and eye-catching.
- π Instant beautification - Pipe any text or command through borderize
- π¨ Dual color support - Customize both border AND text colors
- π 16.7 million colors - Full 24-bit color (hex code) support
- π¦ Zero dependencies - Pure bash, works everywhere
- β‘ Lightning fast - No overhead, instant rendering
- π§ Multiple input modes - Pipe, file, text, or interactive
- π» System-wide installation - One command to rule them all
# Simple text with default green border
echo "Hello World" | borderize | lolcat
# Custom border color (hex)
echo "Warning!" , "Alert!" , "Success!" | borderize -FF0000# Download the script
wget https://raw.githubusercontent.com/GlitchLinux/BORDERIZE/refs/heads/main/borderize
# Make it executable & Move to PATH
sudo chmod +x borderize && sudo mv borderize /usr/local/bin/
# Verify installation
borderize --help# Disk usage with gold border
df -h | borderize -FFD700
# System information with style
uname -a | borderize -ffffff -FF00B8
# With figlet and lolcat for ASCII art
figlet -f smslant BORDERIZE | borderize-neon | lolcat
# Multi-line text
borderize -t "Line 1\nLine 2\nLine 3" -00FF00
# Execute and borderize
borderize -c "date" -FF00FF
# Complex commands
borderize -c "ls -la | head -5" -00FFFF -FFFF00# Borderize file contents
borderize /etc/hostname -FFA500
# With custom colors
cat /etc/os-release | borderize -567645 -443893# Start interactive mode
borderize
# With custom colors
borderize -FF1493 -00CED1
# Type or paste text, press Ctrl+D to apply border# Create aliases in ~/.bashrc
alias borderize-neon='borderize -FF00FF -00FFFF'
alias borderize-matrix='borderize -00FF00 -32CD32'
alias borderize-fire='borderize -FF4500 -FFFF00'
alias borderize-ocean='borderize -0080FF -00CED1'
alias borderize-royal='borderize -800080 -FFD700'
alias borderize-dark='borderize -333333 -FFFFFF'
| Style | Command | Description |
|---|---|---|
| Error | -FF0000 -FFFFFF |
Red border, white text |
| Success | -00FF00 -FFFFFF |
Green border, white text |
| Warning | -FFA500 -FFFF00 |
Orange border, yellow text |
| Info | -0080FF -FFFFFF |
Blue border, white text |
| Neon | -FF00FF -00FFFF |
Magenta border, cyan text |
| Matrix | -00FF00 -32CD32 |
Green border, lime text |
| Gold | -FFD700 -FFFFFF |
Gold border, white text |
| Ocean | -00CED1 -0080FF |
Turquoise border, blue text |
#!/bin/bash
# Status messages with semantic colors
echo "β Task completed" | borderize -00FF00 -FFFFFF
echo "β Warning: Low disk space" | borderize -FFA500 -FFFF00
echo "β Error: Connection failed" | borderize -FF0000 -FFFFFF
# Section headers
echo "=== BACKUP STARTING ===" | borderize -00CED1
perform_backup
echo "=== BACKUP COMPLETE ===" | borderize -00FF00#!/bin/bash
# monitoring.sh
echo "SYSTEM STATUS" | borderize -FFD700 -FFFFFF
uptime | borderize -00FFFF
echo ""
echo "MEMORY USAGE" | borderize -FFD700 -FFFFFF
free -h | borderize -00FFFF
echo ""
echo "DISK USAGE" | borderize -FFD700 -FFFFFF
df -h | borderize -00FFFF# .git/hooks/pre-commit
#!/bin/bash
echo "Running pre-commit checks..." | borderize -FFFF00# Highlight errors in real-time
tail -f /var/log/syslog | grep ERROR | borderize -FF0000 -FFFFFF| Option | Description | Example |
|---|---|---|
-h, --help |
Show help message | borderize --help |
-t "text" |
Borderize given text | borderize -t "Hello" |
-c command |
Execute and borderize command | borderize -c "ls -la" |
-RRGGBB |
Set border color (hex) | borderize -FF0000 |
-RRGGBB (2nd) |
Set text color (hex) | borderize -FF0000 -FFFFFF |
- Automatically adjusts border width to fit content
- Detects variables (
$) and uses open-ended borders with β symbols - Fixed borders for static content with proper corner characters
- 24-bit true color - Use any hex color code
- Dual color mode - Separate colors for border and text
- Fallback support - Defaults to green if invalid hex provided
- Pipe:
command | borderize - File:
borderize filename.txt - Direct text:
borderize -t "text" - Command execution:
borderize -c "command" - Interactive: Just run
borderize
# Test color combinations quickly
echo "TEST" | borderize -$(openssl rand -hex 3) -$(openssl rand -hex 3)# Monitor with borders updating every 2 seconds
watch -n 2 'df -h | borderize -00FFFF'# Add to /etc/update-motd.d/
echo "Welcome to $(hostname)" | borderize -00CED1 -FFFFFF- Bash 4.0+ (for associative arrays and modern features)
- Terminal with 24-bit color support (most modern terminals)
- Unix-like system (Linux, macOS, WSL)
- Ensure your terminal supports 24-bit colors
- Try:
echo -e "\033[38;2;255;0;0mRed Text\033[0m"
- Verify installation:
which borderize - Check PATH:
echo $PATH | grep -q /usr/local/bin && echo "OK"
- Make sure to press
Ctrl+Don a new line - Use
Ctrl+Cto cancel
Found a bug or have a feature idea? Contributions are welcome!
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
MIT License - feel free to use in your projects!
- Add more border styles (double, dotted, ASCII art)
- Background color support
- Animation effects
- Config file support for saved themes
- Multi-box layouts
Make your terminal output beautiful! π¨
If you find this useful, give it a β on GitHub!


