dot_testing/environ
2022-12-21 11:07:12 -06:00

12 lines
321 B
Bash
Executable File

#!/bin/sh
set -x
[ -f .environment ] && exit 2
[ -w /etc/bash.bashrc ] || exit 1
[ -w /etc/profile ] || exit 1
printf '[ -f $HOME/.config/bash/bashrc ] && . $HOME/.config/bash/bashrc\n' >> /etc/bash.bashrc
printf '[ -f $HOME/.config/bash/profile ] && . $HOME/.config/bash/profile\n' >> /etc/profile
touch .environment