Do most dependency checking during install instead of runtime

This commit is contained in:
Alexander Gehrke 2020-08-11 12:09:05 +02:00
parent f8d866b623
commit a2d794ea70
34 changed files with 74 additions and 27 deletions

View file

@ -1,10 +1,10 @@
#!/bin/zsh
#dep:xclip
# install this program with the name xc and symlink it as xs.
# xc will use the clipboard selection, while xs while use the primary selection
source ${$(realpath "$0"):h:h}/lib/common.zsh
depend xclip
function get_primary() { xclip -o -selection primary }
function get_clipboard() { xclip -o -selection clipboard }