ajaypremshankar / ajaypremshankar/homebrew-termo
Add Support for Bash Command History in Macro Execution
- Vorherrschende Sprache
- Python
- Sterne
- 2
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Description:
Currently, the project supports retrieving commands from zsh history for recording macros (tm new and tm save). However, many users rely on bash, so it would be beneficial to add support for reading from .bash_history as well.
### Feature Request:
Add support for retrieving commands from bash history.
Implement logic to detect the user's shell (bash or zsh) and select the appropriate history file automatically.
Ensure that tm new and tm save work seamlessly for bash users by parsing commands from .bash_history.
Proposed Implementation:
### Shell Detection:
Automatically detect whether the user is in a bash or zsh environment.
Set the history file path based on the detected shell.
History Parsing:
Extend the command history parsing logic to handle .bash_history.
Consider differences in format between zsh and bash histories if any.
### Benefits:
- Improved compatibility with a broader range of users.
- Enhanced ease of use for bash users without requiring them to switch to zsh.
### Additional Context:
Any other considerations or edge cases to account for in implementing bash support.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.