mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-23 14:49:30 +01:00
Add presaving support for fish
This commit is contained in:
parent
c5a7245991
commit
328c35a096
@ -1,8 +1,8 @@
|
||||
function _hishtory_post_exec --on-event fish_postexec
|
||||
function _hishtory_post_exec --on-event fish_preexec
|
||||
# Runs after <ENTER>, but before the command is executed
|
||||
set --global _hishtory_command $argv
|
||||
set --global _hishtory_start_time (date +%s)
|
||||
# TODO: Implement pre-saving for fish
|
||||
hishtory presaveHistoryEntry bash "$_hishtory_command" $_hishtory_start_time
|
||||
end
|
||||
|
||||
set --global _hishtory_first_prompt 1
|
||||
|
Loading…
Reference in New Issue
Block a user