mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-28 02:41:05 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cceeba3f8e | |||
| dd3640586e |
10
.gitmodules
vendored
10
.gitmodules
vendored
@@ -13,21 +13,11 @@
|
||||
url = https://github.com/wonderbeyond/dotbot-if.git
|
||||
ignore = dirty
|
||||
|
||||
[submodule "dotbot-ifplatform"]
|
||||
path = dotbot-ifplatform
|
||||
url = https://github.com/ssbanerje/dotbot-ifplatform.git
|
||||
ignore = dirty
|
||||
|
||||
[submodule "dotbot-gh-extension"]
|
||||
path = dotbot-gh-extension
|
||||
url = https://github.com/fundor333/dotbot-gh-extension.git
|
||||
ignore = dirty
|
||||
|
||||
[submodule "dotbot-golang"]
|
||||
path = dotbot-golang
|
||||
url = https://github.com/delicb/dotbot-golang.git
|
||||
ignore = dirty
|
||||
|
||||
[submodule "config/nvim"]
|
||||
path = config/nvim
|
||||
url = https://github.com/AstroNvim/AstroNvim.git
|
||||
|
||||
@@ -52,6 +52,12 @@ if command -v nvim &> /dev/null; then
|
||||
export EDITOR="nvim"
|
||||
fi
|
||||
|
||||
# docker, https://docs.docker.com/engine/reference/commandline/cli/
|
||||
if command -v docker &> /dev/null; then
|
||||
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
|
||||
mkdir -p "$DOCKER_CONFIG"
|
||||
fi
|
||||
|
||||
# z, https://github.com/rupa/z
|
||||
export _Z_DATA="$XDG_STATE_HOME/z"
|
||||
|
||||
|
||||
Submodule dotbot-golang deleted from 4fa60bd487
Submodule dotbot-ifplatform deleted from e35b5c0d71
4
install
4
install
@@ -15,9 +15,7 @@ git submodule update --init --recursive
|
||||
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \
|
||||
-d "${BASEDIR}" \
|
||||
--plugin-dir=dotbot-brew \
|
||||
--plugin-dir=dotbot-gh-extension \
|
||||
--plugin-dir=dotbot-golang \
|
||||
--plugin-dir=dotbot-if \
|
||||
-p dotbot-if/if.py \
|
||||
--plugin-dir=dotbot-gh-extension \
|
||||
-c "${CONFIG}" \
|
||||
"${@}"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
link:
|
||||
create: true
|
||||
relink: true
|
||||
exclude: ["*.md"]
|
||||
exclude: ["*.md", "*renovate*"]
|
||||
- clean:
|
||||
~/:
|
||||
~/.config:
|
||||
@@ -25,33 +25,23 @@
|
||||
- link:
|
||||
~/.config/:
|
||||
glob: true
|
||||
path: config/*
|
||||
path: config/**
|
||||
~/.local/bin/:
|
||||
glob: true
|
||||
path: local/bin/*
|
||||
path: local/bin/**
|
||||
~/.ssh/:
|
||||
force: true
|
||||
glob: true
|
||||
mode: 0600
|
||||
path: ssh/*
|
||||
path: ssh/**
|
||||
~/:
|
||||
force: true
|
||||
glob: true
|
||||
path: base/*
|
||||
path: base/**
|
||||
prefix: "."
|
||||
- shell:
|
||||
- [git submodule update --init --recursive --force]
|
||||
- [chsh -s $(which zsh), Making zsh the default shell]
|
||||
- ifmacos:
|
||||
- shell:
|
||||
- [bash scripts/set-macos-defaults.sh]
|
||||
- brewfile:
|
||||
- Brewfile
|
||||
# Go packages what should be included in every system
|
||||
- go:
|
||||
- github.com/skx/sysbox@latest
|
||||
- github.com/dotzero/git-profile
|
||||
- github.com/google/yamlfmt/cmd/yamlfmt@latest
|
||||
- bash scripts/install-go-packages.sh
|
||||
# hosts!
|
||||
## hosts: air
|
||||
- if:
|
||||
|
||||
30
scripts/install-go-packages.sh
Executable file
30
scripts/install-go-packages.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
# Install Go packages
|
||||
#
|
||||
# shellcheck source=shared.sh
|
||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
|
||||
if ! command -v go &> /dev/null; then
|
||||
msg "go hasn't been installed yet."
|
||||
else
|
||||
packages=(
|
||||
# sysadmin/scripting utilities, distributed as a single binary
|
||||
github.com/skx/sysbox@latest
|
||||
github.com/dotzero/git-profile@latest
|
||||
github.com/google/yamlfmt/cmd/yamlfmt@latest
|
||||
)
|
||||
|
||||
for pkg in "${packages[@]}"; do
|
||||
# Trim spaces
|
||||
pkg=${pkg// /}
|
||||
# Skip comments
|
||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
||||
|
||||
msg_run "Installing go package:" "$pkg"
|
||||
go install "$pkg"
|
||||
echo ""
|
||||
done
|
||||
|
||||
msg_ok "Done"
|
||||
|
||||
fi
|
||||
Reference in New Issue
Block a user