mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 22:11:40 +02:00
* Improve stdout/stderr silencing from #260 and #253 * Fix order of output redirection * Update goldens
This commit is contained in:
parent
023323ea81
commit
0de38fac95
@ -6,7 +6,7 @@ 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 (hishtory getTimestamp)
|
||||
hishtory presaveHistoryEntry fish "$_hishtory_command" $_hishtory_start_time &; disown 2>&1 >/dev/null # Background Run
|
||||
hishtory presaveHistoryEntry fish "$_hishtory_command" $_hishtory_start_time 2>&1 >/dev/null &; disown # Background Run
|
||||
# hishtory presaveHistoryEntry fish "$_hishtory_command" $_hishtory_start_time 2>&1 >/dev/null # Foreground Run
|
||||
end
|
||||
|
||||
@ -19,9 +19,9 @@ function __hishtory_on_prompt --on-event fish_prompt
|
||||
if [ -n "$_hishtory_first_prompt" ]
|
||||
set --global -e _hishtory_first_prompt
|
||||
else if [ -n "$_hishtory_command" ]
|
||||
hishtory saveHistoryEntry fish $_hishtory_exit_code "$_hishtory_command" $_hishtory_start_time &; disown 2>&1 >/dev/null # Background Run
|
||||
hishtory saveHistoryEntry fish $_hishtory_exit_code "$_hishtory_command" $_hishtory_start_time 2>&1 >/dev/null &; disown # Background Run
|
||||
# hishtory saveHistoryEntry fish $_hishtory_exit_code "$_hishtory_command" $_hishtory_start_time 2>&1 >/dev/null # Foreground Run
|
||||
hishtory updateLocalDbFromRemote &; disown
|
||||
hishtory updateLocalDbFromRemote 2>&1 >/dev/null &; disown
|
||||
set --global -e _hishtory_command # Unset _hishtory_command so we don't double-save entries when fish_prompt is invoked but fish_postexec isn't
|
||||
end
|
||||
end
|
||||
|
@ -56,7 +56,7 @@ function __hishtory_postcommand() {
|
||||
|
||||
LAST_SAVED_COMMAND=$CMD
|
||||
|
||||
(hishtory updateLocalDbFromRemote &)
|
||||
(hishtory updateLocalDbFromRemote &) 2>&1 >/dev/null
|
||||
|
||||
return $EXIT_CODE
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ function _hishtory_precmd() {
|
||||
fi
|
||||
(hishtory saveHistoryEntry zsh $_hishtory_exit_code "$_hishtory_command" $_hishtory_start_time &) 2>&1 >/dev/null # Background Run
|
||||
# hishtory saveHistoryEntry zsh $_hishtory_exit_code "$_hishtory_command" $_hishtory_start_time 2>&1 >/dev/null # Foreground Run
|
||||
(hishtory updateLocalDbFromRemote &)
|
||||
(hishtory updateLocalDbFromRemote &) 2>&1 >/dev/null
|
||||
}
|
||||
|
||||
_hishtory_widget() {
|
||||
|
1
client/testdata/testUninstall-uninstall-bash
vendored
1
client/testdata/testUninstall-uninstall-bash
vendored
@ -1,3 +1,4 @@
|
||||
Are you sure you want to uninstall hiSHtory and delete all locally saved history data [y/N]Do you have any feedback on why you're uninstallying hiSHtory? Type any feedback and then hit enter.
|
||||
Feedback: Successfully uninstalled hishtory, please restart your terminal...
|
||||
bash: /home/runner/.hishtory/hishtory: No such file or directory
|
||||
bash: /home/runner/.hishtory/hishtory: No such file or directory
|
||||
|
1
client/testdata/testUninstall-uninstall-zsh
vendored
1
client/testdata/testUninstall-uninstall-zsh
vendored
@ -1,3 +1,4 @@
|
||||
Are you sure you want to uninstall hiSHtory and delete all locally saved history data [y/N]Do you have any feedback on why you're uninstallying hiSHtory? Type any feedback and then hit enter.
|
||||
Feedback: Successfully uninstalled hishtory, please restart your terminal...
|
||||
_hishtory_precmd:8: command not found: hishtory
|
||||
_hishtory_precmd:9: command not found: hishtory
|
||||
|
Loading…
x
Reference in New Issue
Block a user