Skip to content

Commit

Permalink
Add tig and nvim to exclusions list
Browse files Browse the repository at this point in the history
  • Loading branch information
cgspeck committed Feb 8, 2024
1 parent 769e6fa commit 7eaf90f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yapc"
version = "1.0.0"
version = "1.0.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ To avoid unnecessary notifications:
The defaults are set is in [shell-hook](src/assets/shell-hook) and may be overridden as follows:

```shell
# e.g. increase default notification threshold to 60 seconds
export AUTO_YAPC_DONE_LONGER_THAN=60
# e.g. increase default notification threshold to 90 seconds
export AUTO_YAPC_DONE_LONGER_THAN=90
# e.g. set ignore list to following
export AUTO_YAPC_DONE_IGNORE="vim screen meld"
```
Expand Down
4 changes: 2 additions & 2 deletions src/assets/shell-hook
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ function _yapc_precmd() {
[[ -n "$yapc_start_time" ]] || return
local duration=$(($(date +%s) - $yapc_start_time))
yapc_start_time=''
auto_yapc_done_longer_than=${AUTO_YAPC_DONE_LONGER_THAN:-30}
auto_yapc_done_longer_than=${AUTO_YAPC_DONE_LONGER_THAN:-60}
[[ "$duration" -le "$auto_yapc_done_longer_than" ]] && return
local appname
appname=$(basename "${yapc_command%% *}")
auto_yapc_done_ignore=${AUTO_YAPC_DONE_IGNORE:-ntf emacs htop info less mail man meld most mutt nano screen ssh tail tmux top vi vim watch}
auto_yapc_done_ignore=${AUTO_YAPC_DONE_IGNORE:-ntf emacs htop info less mail man meld most mutt nano nvim screen ssh tail tig tmux top vi vim watch}
[[ " $auto_yapc_done_ignore " == *" $appname "* ]] && return
(yapc shell-done "$code" "$duration" "$yapc_command" &)
}
Expand Down

0 comments on commit 7eaf90f

Please sign in to comment.