-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from bcdady/fmt/tmpl
format: improve templated lines and fixup gitconfig
- Loading branch information
Showing
8 changed files
with
38 additions
and
46 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{{ if eq .chezmoi.os "darwin" }} | ||
{{- if eq .chezmoi.os "darwin" }} | ||
#!/bin/zsh | ||
|
||
# Install ASDF for Oh-My-ZSH | ||
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/asdf | ||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf | ||
{{ else if eq .chezmoi.os "linux" }} | ||
{{- else if eq .chezmoi.os "linux" }} | ||
#!/bin/bash | ||
|
||
# Install ASDF from github | ||
LATEST_VERSION=$(curl -sL https://api.github.com/repos/asdf-vm/asdf/releases/latest | jq -r ".tag_name" | cut -c2-) | ||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch "v${LATEST_VERSION}" | ||
|
||
{{ end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/bin/bash | ||
{{ if eq .chezmoi.os "darwin" }} | ||
{{- if eq .chezmoi.os "darwin" }} | ||
# Install Homebrew | ||
# https://brew.sh/ | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
{{ else if eq .chezmoi.os "linux" }} | ||
{{- else if eq .chezmoi.os "linux" }} | ||
echo "Detected Linux; Installing snapd" | ||
# This may need to be reconsidered, if it turns out to be unsafe | ||
# to install snapd on a system that already has it | ||
echo "Updating APT" | ||
sudo apt update | ||
echo "Installing snapd" | ||
sudo apt install snapd | ||
{{ end }} | ||
{{- end }} |