Original bash implementation of the define dictionary tool.
Оригинальная реализация словаря define на bash.
- 2955 lines of battle-tested bash
- 643 Russian transliterations built-in
- 177 Russian definitions embedded
- Works on any system with
bash,curl,jq - Single-file deployment
# Copy to your bin directory
cp define ~/.local/bin/
cp определить словарь слово ~/.local/bin/
chmod +x ~/.local/bin/{define,определить,словарь,слово}
# Add to PATH if needed
export PATH="$HOME/.local/bin:$PATH"# Linux (Ubuntu/Debian)
sudo apt install curl jq
# Linux (Arch)
sudo pacman -S curl jq
# macOS (IMPORTANT: requires Bash 4.0+)
# macOS ships with Bash 3.2 which doesn't support associative arrays
brew install bash curl jq
# After installing, either:
# 1. Run with: /opt/homebrew/bin/bash define (Apple Silicon)
# or: /usr/local/bin/bash define (Intel Mac)
# 2. Or use the Python version instead (recommended for macOS)
# Optional for audio / Для аудио (опционально):
# Linux: mpv, vlc, or ffplay
# macOS: uses built-in afplay
⚠️ macOS Users: The Python version is strongly recommended as it requires no external dependencies and works with the system Python.
define serendipity # English word
define привет # Russian (Cyrillic)
define privet # Russian (transliteration)
define -f love # Full info
define -p hello # Play pronunciation
define --save word # Save to vocabulary
define --quiz # Quiz mode| Feature | Bash | Python |
|---|---|---|
| Dependencies | curl, jq | None (stdlib) |
| Grammar (cases, conjugation) | ❌ | ✅ |
| Idioms database | ❌ | ✅ |
| Code structure | Single file | Modular |
| Extensibility | Limited | Plugin architecture |
Recommendation: Use Python version for new features. Bash version is maintained for compatibility.
Based on the original define script by BreadOnPenguins