first commit
This commit is contained in:
commit
0610f4aeab
130 changed files with 9897 additions and 0 deletions
18
fn/-z4h-ssh-maybe-update
Normal file
18
fn/-z4h-ssh-maybe-update
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# Requires: [[ $Z4H_SSH == <1->:* ]]
|
||||
|
||||
eval "$_z4h_opt"
|
||||
|
||||
local min_version=${Z4H_SSH%%:*}
|
||||
|
||||
local got_version
|
||||
got_version=${$(<$Z4H/zsh4humans/version)%$'\r'} &&
|
||||
[[ $got_version == <-> ]] &&
|
||||
(( got_version >= min_version )) &&
|
||||
return
|
||||
|
||||
print -Pru2 -- "%F{3}z4h%f: %Binitiating update%b (cached version too old)"
|
||||
|
||||
Z4H_SSH=0:${Z4H_SSH#*:}
|
||||
-z4h-cmd-update
|
Loading…
Add table
Add a link
Reference in a new issue