fh README EN
📌 Function: fh
📝 Description: The fh function provides an interactive interface to your command history using fzf, offering a friendly UI and improved navigation. You can select a command from a menu, and it will be executed immediately when you press Enter.
🌐 Language detection: - If the system language (LANG) starts with "es", labels will be in Spanish. - Otherwise, labels will be in English.
🎯 Main features: - History shown from most recent to oldest. - Only commands shown, without timestamps or metadata. - Navigation shortcuts: Ctrl-X (go to top), Ctrl-Z (go to bottom). - Customized fzf interface with color scheme, border, and title. - Preview of the selected command. - The selected command is automatically executed.
🛠️ Requirements: - bash - fzf installed and available in PATH
📦 Installation:
1. Copy the function into your ~/.bashrc or similar file.
2. Run source ~/.bashrc to reload your shell configuration.
✅ Usage:
Type fh in your terminal and press Enter.
Navigate with arrow keys and press Enter to run the selected command.
📎 Note: Currently, the selected command is executed immediately. To have it appear in the prompt without running, the function must be modified.