mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
feat(dotbot): plugins: pipx, snap and crontab
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,4 +13,5 @@ ssh/local.d/*
|
||||
!ssh/local.d/.gitkeep
|
||||
!.gitkeep
|
||||
.env
|
||||
local/share/fonts/NerdFonts
|
||||
|
||||
|
||||
9
.gitmodules
vendored
9
.gitmodules
vendored
@@ -47,3 +47,12 @@
|
||||
[submodule "tmux/tmux-window-name"]
|
||||
path = config/tmux/plugins/tmux-window-name
|
||||
url = https://github.com/ofirgall/tmux-window-name.git
|
||||
[submodule "dotbot-crontab"]
|
||||
path = tools/dotbot-crontab
|
||||
url = https://github.com/codekansas/dotbot-crontab.git
|
||||
[submodule "dotbot-snap"]
|
||||
path = tools/dotbot-snap
|
||||
url = https://github.com/DrDynamic/dotbot-snap.git
|
||||
[submodule "dotbot-pip"]
|
||||
path = tools/dotbot-pip
|
||||
url = https://github.com/sobolevn/dotbot-pip.git
|
||||
|
||||
@@ -1,9 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
git submodule add --name dotbot -f https://github.com/anishathalye/dotbot.git tools/dotbot
|
||||
git submodule add --name dotbot-brew -f https://github.com/wren/dotbot-brew.git tools/dotbot-brew
|
||||
git submodule add --name dotbot-include -f https://gitlab.com/gnfzdz/dotbot-include.git tools/dotbot-include
|
||||
git submodule add --name cheat-community -f https://github.com/cheat/cheatsheets.git config/cheat/cheatsheets/community
|
||||
# dotbot and plugins
|
||||
git submodule add --name dotbot \
|
||||
-f https://github.com/anishathalye/dotbot.git tools/dotbot
|
||||
git submodule add --name dotbot-brew \
|
||||
-f https://github.com/wren/dotbot-brew.git tools/dotbot-brew
|
||||
git submodule add --name dotbot-include \
|
||||
-f https://gitlab.com/gnfzdz/dotbot-include.git tools/dotbot-include
|
||||
git submodule add --name dotbot-crontab \
|
||||
-f https://github.com/codekansas/dotbot-crontab.git tools/dotbot-crontab
|
||||
git submodule add --name dotbot-snap \
|
||||
-f https://github.com/DrDynamic/dotbot-snap.git tools/dotbot-snap
|
||||
git submodule add --name dotbot-pip \
|
||||
-f https://github.com/sobolevn/dotbot-pip.git tools/dotbot-pip
|
||||
|
||||
# other repos
|
||||
git submodule add --name cheat-community \
|
||||
-f https://github.com/cheat/cheatsheets.git config/cheat/cheatsheets/community
|
||||
|
||||
# tmux plugin manager and plugins
|
||||
git submodule add --name tmux/tpm \
|
||||
|
||||
@@ -119,6 +119,7 @@ have gem && path_append "$(gem environment gemdir)/bin"
|
||||
have rbenv && eval "$(rbenv init - zsh)"
|
||||
|
||||
# Rust / cargo
|
||||
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||
path_append "$CARGO_HOME/bin"
|
||||
|
||||
|
||||
12
install
12
install
@@ -18,18 +18,24 @@ git submodule update --init --recursive "${DOTBOT_DIR}"
|
||||
-d "${BASEDIR}" \
|
||||
--plugin-dir=tools/dotbot-brew \
|
||||
--plugin-dir=tools/dotbot-include \
|
||||
--plugin-dir=tools/dotbot-crontab \
|
||||
--plugin-dir=tools/dotbot-snap \
|
||||
--plugin-dir=tools/dotbot-pip \
|
||||
-c "${CONFIG}" \
|
||||
"${@}"
|
||||
|
||||
if [ "${DOTBOT_HOST}" != "" ]; then
|
||||
DOTBOT_HOST_CONFIG="${BASEDIR}/hosts/${DOTBOT_HOST}/${CONFIG}"
|
||||
echo "-> Trying if host config can be found: ${DOTBOT_HOST_CONFIG}"
|
||||
[ -r "$DOTBOT_HOST_CONFIG" ] && [ -f "$DOTBOT_HOST_CONFIG" ] \
|
||||
&& echo "(!) Found $DOTBOT_HOST_CONFIG" \
|
||||
&& "$DOTBOT_BIN_PATH" \
|
||||
[ -r "$DOTBOT_HOST_CONFIG" ] && [ -f "$DOTBOT_HOST_CONFIG" ] &&
|
||||
echo "(!) Found $DOTBOT_HOST_CONFIG" &&
|
||||
"$DOTBOT_BIN_PATH" \
|
||||
-d "$BASEDIR" \
|
||||
--plugin-dir=tools/dotbot-brew \
|
||||
--plugin-dir=tools/dotbot-include \
|
||||
--plugin-dir=tools/dotbot-crontab \
|
||||
--plugin-dir=tools/dotbot-snap \
|
||||
--plugin-dir=tools/dotbot-pip \
|
||||
-c "$DOTBOT_HOST_CONFIG" \
|
||||
"${@}"
|
||||
fi
|
||||
|
||||
@@ -52,3 +52,19 @@
|
||||
- shell:
|
||||
- git submodule update --init --recursive --force
|
||||
- bash local/bin/dfm install all
|
||||
- pipx:
|
||||
file: tools/requirements-pipx.txt
|
||||
stdout: false
|
||||
stderr: true
|
||||
- crontab:
|
||||
- time: 0 5 * * *
|
||||
command: brew update && brew upgrade
|
||||
platform: darwin # Optional
|
||||
- time: 0 5 * * *
|
||||
command: apt update && apt upgrade
|
||||
platform: linux # Optional
|
||||
- time: 0 5 * * *
|
||||
command: task sync
|
||||
- snap:
|
||||
- nvim:
|
||||
classic: true
|
||||
|
||||
@@ -6,7 +6,7 @@ source "$HOME/.dotfiles/scripts/shared.sh"
|
||||
|
||||
! have cargo && {
|
||||
msg "cargo could not be found. installing cargo with rustup.rs"
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path
|
||||
}
|
||||
|
||||
packages=(
|
||||
@@ -18,6 +18,9 @@ packages=(
|
||||
"eza"
|
||||
# A simple, fast and user-friendly alternative to 'find'
|
||||
"fd-find"
|
||||
"cargo-update"
|
||||
"pijul"
|
||||
"ripgrep"
|
||||
)
|
||||
|
||||
for pkg in "${packages[@]}"; do
|
||||
@@ -26,7 +29,8 @@ for pkg in "${packages[@]}"; do
|
||||
# Skip comments
|
||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
||||
|
||||
cargo install $pkg
|
||||
msg "Installing cargo package $pkg"
|
||||
cargo install "$pkg"
|
||||
|
||||
echo ""
|
||||
done
|
||||
|
||||
@@ -18,7 +18,7 @@ for pkg in "${packages[@]}"; do
|
||||
# Skip comments
|
||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
||||
|
||||
python3 -m pip install --user $pkg
|
||||
python3 -m pip install --user "$pkg"
|
||||
|
||||
echo ""
|
||||
done
|
||||
|
||||
1
tools/dotbot-crontab
Submodule
1
tools/dotbot-crontab
Submodule
Submodule tools/dotbot-crontab added at ea900a7cf6
1
tools/dotbot-pip
Submodule
1
tools/dotbot-pip
Submodule
Submodule tools/dotbot-pip added at 42e6a8f3be
1
tools/dotbot-snap
Submodule
1
tools/dotbot-snap
Submodule
Submodule tools/dotbot-snap added at 5722c4e5af
2
tools/requirements-pipx.txt
Normal file
2
tools/requirements-pipx.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
openapi-python-client
|
||||
libtmux
|
||||
Reference in New Issue
Block a user