diff options
author | Robert Estelle <robertestelle@gmail.com> | 2019-07-12 17:16:01 -0400 |
---|---|---|
committer | Robert Estelle <robertestelle@gmail.com> | 2019-07-12 17:45:57 -0400 |
commit | 956ca639bba5780dc6272e76b0507c67e93c098b (patch) | |
tree | aa9a7b009a604d2331fa173454dd008f34098c13 /plugins/chucknorris/chucknorris.plugin.zsh | |
parent | d855547661ee4173bd01ab89ad18418d4dbf508a (diff) | |
download | zsh-956ca639bba5780dc6272e76b0507c67e93c098b.tar.gz zsh-956ca639bba5780dc6272e76b0507c67e93c098b.tar.bz2 zsh-956ca639bba5780dc6272e76b0507c67e93c098b.zip |
clipboard: Avoid unnecessary re-detection each time
Previously, OS detection would happen on each invocation. This makes it
happen once (unless it fails, in which case it will try again on the
next invocation).
This has the additional benefit of localizing the platform-specific
checks and commands, too, versus spreading them out in separate
functions.
Diffstat (limited to 'plugins/chucknorris/chucknorris.plugin.zsh')
0 files changed, 0 insertions, 0 deletions