fix: fix observed issues on osx (#2)

This commit is contained in:
Marc 2022-11-11 19:47:09 -05:00 committed by GitHub
parent d7e1d18b37
commit 2508b0f19a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

10
setup
View file

@ -19,9 +19,9 @@ fi
echo "Setting up shell configuration extras..." echo "Setting up shell configuration extras..."
if [[ -z $(cat $SHELL_CONFIG_PATH | grep $BLOCK_DELIMITER_PATTERN) ]]; then if [[ -z $(cat $SHELL_CONFIG_PATH | grep $BLOCK_DELIMITER_PATTERN) ]]; then
echo "# $BLOCK_DELIMITER_PATTERN:start echo "# $BLOCK_DELIMITER_PATTERN\:start
for f in ~/.env_goodies/source/*; do source $f; done for source_files in ~/.env_goodies/source/*; do source $source_files; done
# $BLOCK_DELIMITER_PATTERN:end" >> $SHELL_CONFIG_PATH # $BLOCK_DELIMITER_PATTERN\:end" >> $SHELL_CONFIG_PATH
echo "✅ Added managed block to $SHELL_CONFIG_PATH" echo "✅ Added managed block to $SHELL_CONFIG_PATH"
else else
echo "No changes to apply!" echo "No changes to apply!"
@ -33,9 +33,9 @@ EDITOR_CONFIG_FILE=$EDITOR_CONFIG/init.vim
if [[ -f $EDITOR_CONFIG_FILE ]]; then if [[ -f $EDITOR_CONFIG_FILE ]]; then
echo "Setting up NVIM configuration extras..." echo "Setting up NVIM configuration extras..."
if [[ -z $(cat $EDITOR_CONFIG_FILE | grep $BLOCK_DELIMITER_PATTERN) ]]; then if [[ -z $(cat $EDITOR_CONFIG_FILE | grep $BLOCK_DELIMITER_PATTERN) ]]; then
echo "\" $BLOCK_DELIMITER_PATTERN:start echo "\" $BLOCK_DELIMITER_PATTERN\:start
source $HOME/.env_goodies/extras.vim source $HOME/.env_goodies/extras.vim
\" $BLOCK_DELIMITER_PATTERN:end\n\n" >> $EDITOR_CONFIG_FILE.new \" $BLOCK_DELIMITER_PATTERN\:end\n\n" >> $EDITOR_CONFIG_FILE.new
cat $EDITOR_CONFIG_FILE >> $EDITOR_CONFIG_FILE.new cat $EDITOR_CONFIG_FILE >> $EDITOR_CONFIG_FILE.new
mv $EDITOR_CONFIG_FILE $EDITOR_CONFIG_FILE.old mv $EDITOR_CONFIG_FILE $EDITOR_CONFIG_FILE.old