-m Tweaks

This commit is contained in:
Ismo Vuorinen
2022-12-23 13:30:52 +02:00
parent 2a5b2400d7
commit fe6f070beb
3 changed files with 8 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ function section_install
curl -L git.io/antigen > "$DOTFILES/local/bin/antigen.zsh" && msg_done "🎉 Done!" curl -L git.io/antigen > "$DOTFILES/local/bin/antigen.zsh" && msg_done "🎉 Done!"
;; ;;
brew) brew)
brew bundle install --file="$BREWFILE" && echo "🎉 Done!" brew bundle install --file="$BREWFILE" && msg_done "🎉 Done!"
;; ;;
macos) macos)
bash "$DOTFILES/scripts/set-macos-defaults.sh" && msg_done "🎉 Done!" bash "$DOTFILES/scripts/set-macos-defaults.sh" && msg_done "🎉 Done!"
@@ -70,7 +70,7 @@ function section_brew
case "$1" in case "$1" in
install) install)
brew bundle install --file="$BREWFILE" && echo "🎉 Done!" brew bundle install --file="$BREWFILE" && msg_done "🎉 Done!"
;; ;;
update) update)
brew update && brew outdated && brew upgrade && brew cleanup brew update && brew outdated && brew upgrade && brew cleanup
@@ -81,7 +81,7 @@ function section_brew
brew bundle dump \ brew bundle dump \
--force \ --force \
--file="$BREWFILE" \ --file="$BREWFILE" \
--describe && msg_ok "🎉 Done!" --describe && msg_done "🎉 Done!"
;; ;;
autoupdate) autoupdate)
brew autoupdate start 43200 --upgrade --cleanup --immediate brew autoupdate start 43200 --upgrade --cleanup --immediate
@@ -102,7 +102,7 @@ function section_dotfiles
case "$1" in case "$1" in
link) link)
rcup -B "$HOSTNAME" -f -v && echo "🎉 Done!" rcup -B "$HOSTNAME" -f -v && msg_done "🎉 Done!"
;; ;;
update) update)
# Updates .dotfiles/scripts/install.sh and formats it # Updates .dotfiles/scripts/install.sh and formats it
@@ -111,7 +111,7 @@ function section_dotfiles
&& sed -i '' "s|$HOME|\$HOME|g" "$INSTALL_SCRIPT" \ && sed -i '' "s|$HOME|\$HOME|g" "$INSTALL_SCRIPT" \
&& sed -i '' "s|install.sh|$(basename $INSTALL_SCRIPT)|g" "$INSTALL_SCRIPT" && sed -i '' "s|install.sh|$(basename $INSTALL_SCRIPT)|g" "$INSTALL_SCRIPT"
$0 dotfiles shfmt $0 dotfiles shfmt
echo "🎉 Done!" msg_done "🎉 Done!"
;; ;;
shfmt) shfmt)
# Format shell scripts according to following rules. # Format shell scripts according to following rules.
@@ -121,7 +121,6 @@ function section_dotfiles
--write \ --write \
--diff \ --diff \
--simplify \ --simplify \
--language-dialect bash \
--indent 2 \ --indent 2 \
--binary-next-line \ --binary-next-line \
--case-indent \ --case-indent \

View File

@@ -2,6 +2,7 @@ Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
Host github.com Host github.com
User git
HostName github.com HostName github.com
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa

1
vuerc
View File

@@ -21,3 +21,4 @@
} }
} }
} }