diff options
| author | xengineering <me@xengineering.eu> | 2024-06-27 18:43:43 +0200 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2024-06-27 18:43:43 +0200 |
| commit | 9c42b9d57f5dc3e9cfe3f7c3f042d9f6b9584e1c (patch) | |
| tree | 5b2fa85efe9df1c331d73c49455c44b2d715dd72 /posix-shell | |
| parent | 312543c49cc3407b66aafced6822cc3ade10b724 (diff) | |
| download | dotfiles-9c42b9d57f5dc3e9cfe3f7c3f042d9f6b9584e1c.tar dotfiles-9c42b9d57f5dc3e9cfe3f7c3f042d9f6b9584e1c.tar.zst dotfiles-9c42b9d57f5dc3e9cfe3f7c3f042d9f6b9584e1c.zip | |
bash: Move parts to posix-shell/programs.sh
Diffstat (limited to 'posix-shell')
| -rw-r--r-- | posix-shell/programs.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/posix-shell/programs.sh b/posix-shell/programs.sh new file mode 100644 index 0000000..06af8e9 --- /dev/null +++ b/posix-shell/programs.sh @@ -0,0 +1,38 @@ +#!/bin/sh + + +PROGRAMS=' +aerc +bemenu-run +brightnessctl +dunst +foot +gammastep +grim +htop +khard +lf +mpv +nvim +pactl +rifle +slurp +swappy +sway +swaylock +vdirsyncer +' + + +# check for missing programs +echo "$PROGRAMS" | while read -r program +do + if [ "$program" = '' ] + then + continue + fi + if ! command -v "$program" > /dev/null 2>&1 + then + echo "Program is missing: '$program'" + fi +done |
