manager/files/bash/bashrc.d/local_software
Dan Anglin 903e5d8b66
checkpoint: manage home directories
- ensure configured home directories are present and their mode set to
  0700
- move dotfiles to files
- added JSON config
2024-09-09 18:02:53 +01:00

12 lines
292 B
Text

if [[ -d "$HOME/.local/software" ]]; then
for dir in ${HOME}/.local/software/*; do
dir=${dir:A}
if [[ -d "$dir/bin" ]]; then
if ! [[ "${PATH}" =~ "$dir/bin" ]]; then
export PATH="$dir/bin:$PATH"
fi
fi
done
fi
unset dir