ajaypremshankar / ajaypremshankar/homebrew-termo

Add Support for Bash Command History in Macro Execution

オープン
#1 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
2
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。