From a6cc161b384e4e9a2a5fdac765616647ab412712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Wed, 22 Jul 2020 20:42:43 +0200 Subject: [PATCH] add script to check that required dependencies are in PATH --- README.md | 9 ++++++++- check_dependencies.sh | 45 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 check_dependencies.sh diff --git a/README.md b/README.md index 1dcb57c..752108e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,14 @@ Lupan's config files ==================== -To reproduce my environment clone this repo into `~/dotfiles` and run +To reproduce my environment clone this repo into `~/dotfiles` check +that you have required programs in your PATH with + +``` +$ sh check_dependencies.sh +``` + +and run ``` $ stow -v alacritty bspwm music shell tmux diff --git a/check_dependencies.sh b/check_dependencies.sh new file mode 100644 index 0000000..58bc7fa --- /dev/null +++ b/check_dependencies.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +echo '# bspwm:' +for CMD in \ + alacritty \ + bspc \ + bspwm \ + dmenu \ + dmenu_run \ + emacsclient \ + pkill \ + polybar \ + polybar-msg \ + sed \ + setxkbmap \ + slock \ + sxhkd \ + systemctl \ + xargs \ + xdo \ + xmodmap \ + xrandr \ + xrdb \ + xsetroot \ + xsettingsd \ + xtitle \ + xss-lock; do + which "$CMD" +done + +echo '\n# bspwm (optional):' +for CMD in \ + firefox \ + mpc \ + mpd \ + pamixer \ + sx \ + thunderbird; do + which "$CMD" +done + +echo '\n# shell:' +for CMD in emacsclient zsh; do + which "$CMD" +done