Skip to content

Commit

Permalink
Add bash to the possible shells
Browse files Browse the repository at this point in the history
  • Loading branch information
dybdeskarphet committed Dec 12, 2024
1 parent dbe7246 commit 19fb9eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cliwrap
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ check_and_return_history_file() {
return 1
fi
;;
"bash")
if [[ -f "$HOME/.bash_history" ]]; then
history_file="$HOME/.bash_history"
else
echo -e "${RED}The specified terminal history file was not found! Why don't you run \`cliwrap -h\` to find a compatible one?${RESET}" >&2
return 1
fi
;;
*)
echo -e "${RED}Your shell is not added to the script. Considering creating an issue on the GitHub repository. ${RESET}" >&2
return 1
Expand Down

0 comments on commit 19fb9eb

Please sign in to comment.