Skip to content

Commit

Permalink
Slightly less intrusive startup
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilMacMullen committed Feb 17, 2022
1 parent d972c94 commit 3d96548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/powershell/ps-jumpfs.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ function jumpfs_remove($p) {
jumpfs_do_or_warn_if_empty $path "" "No bookmark '$p'"
}

## run version check every 3 days
if (((Get-date).DayOfYear % 3) -eq 0) {
## run version check approximately 1 in 10 startups to prevent it being too intrusive
if (($(Get-date).Second % 10) -eq 0) {
jumpfs.exe checkVersion --quiet
}

### ensure functions and aliases are visible
Export-ModuleMember -alias * -function *

0 comments on commit 3d96548

Please sign in to comment.