2025-01-03
This commit is contained in:
@@ -3,12 +3,14 @@
|
|||||||
# Navigate to the repository
|
# Navigate to the repository
|
||||||
cd ~/dotfiles || exit
|
cd ~/dotfiles || exit
|
||||||
|
|
||||||
|
brew bundle dump --file=~/dotfiles/Brewfile --force
|
||||||
|
|
||||||
# Check for changes
|
# Check for changes
|
||||||
if [[ $(git status --porcelain) ]]; then
|
if [[ $(git status --porcelain) ]]; then
|
||||||
# There are changes, commit them
|
# There are changes, commit them
|
||||||
git add .
|
git add .
|
||||||
git commit -m "$(date +"%Y-%m-%d")"
|
git commit -m "$(date +"%Y-%m-%d")"
|
||||||
git push
|
git push origin $BRANCH
|
||||||
else
|
else
|
||||||
echo "No changes to commit."
|
echo "No changes to commit."
|
||||||
fi
|
fi
|
||||||
|
|||||||
+1
-1
@@ -3,5 +3,5 @@ if [[ -n $SSH_CONNECTION ]]; then
|
|||||||
export VISUAL='/opt/homebrew/bin/micro'
|
export VISUAL='/opt/homebrew/bin/micro'
|
||||||
export EDITOR='/opt/homebrew/bin/micro'
|
export EDITOR='/opt/homebrew/bin/micro'
|
||||||
else
|
else
|
||||||
export EDITOR='bbedit'
|
export EDITOR='micro'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user