add script to check that required dependencies are in PATH

This commit is contained in:
Łukasz Pankowski 2020-07-22 20:42:43 +02:00
parent 857c02ddab
commit a6cc161b38
2 changed files with 53 additions and 1 deletions

View File

@ -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

45
check_dependencies.sh Normal file
View File

@ -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