Skip to content

Commit

Permalink
Filter out more commands to avoid too noisy
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaMisty committed Aug 14, 2024
1 parent 8744d1d commit 970deb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zsh_conf/50-push.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ prompt_precmd() {
if (( elapsed_realtime < 40 )); then
return
fi
if [[ "$prompt_preexec_cmd" =~ ^(htop|top|btop|watch|vim|tmux|ping).* ]]; then
if [[ "$prompt_preexec_cmd" =~ ^(sudo |)(htop|top|btop|watch|vim|tmux|ping).* ]]; then
return
fi
if [[ "$prompt_preexec_cmd" =~ ^(sudo |)(docker logs|gdb|frida).* ]]; then
return
fi

if [[ "$prompt_preexec_cmd" =~ ^(python|python3)$ ]]; then
return
fi
Expand Down

0 comments on commit 970deb0

Please sign in to comment.