From 64d366a5ea51c857b80bc24e89edc71d34b8ec06 Mon Sep 17 00:00:00 2001 From: Yoshio Sugiyama Date: Sat, 11 Jul 2026 13:22:30 +0900 Subject: [PATCH 1/3] feat: dotfiles repo migrate to mise repo Signed-off-by: Yoshio Sugiyama --- .config/mise/config.toml | 1 + install | 19 ++++++------------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.config/mise/config.toml b/.config/mise/config.toml index af3502a..b5496e0 100644 --- a/.config/mise/config.toml +++ b/.config/mise/config.toml @@ -24,6 +24,7 @@ mkdir -p ~/github_hpeprod/yoshio-sugiyama_hpeprod "~/.config/*" = {} [bootstrap.repos] +"~/.dotfiles" = { url = "https://github.com/IMOKURI/dotfiles.git" } "~/src/bashmarks" = { url = "https://github.com/huyng/bashmarks.git" } "~/src/cat-bat" = { url = "https://github.com/catppuccin/bat.git" } diff --git a/install b/install index e44d549..4478d16 100755 --- a/install +++ b/install @@ -6,13 +6,13 @@ set -e export PATH=${HOME}/.local/bin:${HOME}/bin:${HOME}/.local/share/mise/shims:/usr/local/bin:${PATH} +# Mise +export MISE_GLOBAL_CONFIG_FILE="${HOME}/.mise-config.toml" + # Defind Colors BANNER="\033[38;2;101;178;255m" # BLUE CLEAR_COLOR="\033[0m" -# Define path -DOTPATH="$HOME/.dotfiles" - ##### Functions ############################################################### COL=120 @@ -22,18 +22,11 @@ function _banner() { printf "\n${BANNER}%s %s${CLEAR_COLOR}\n\n" "${1}" "${sep:${#1}}" } -##### Download Dotfiles ###################################################### - -_banner "Download Dotfiles..." - -if [[ ! -d "${DOTPATH}" ]]; then - git clone --recursive https://github.com/IMOKURI/dotfiles.git "${DOTPATH}" - mkdir -p ${HOME}/.config - ln -sfnv "${DOTPATH}/.config/mise" "${HOME}/.config/mise" -fi - ##### Bootstrap ############################################################## +_banner "Download mise global config..." +curl -fsSL -o ${MISE_GLOBAL_CONFIG_FILE} https://raw.githubusercontent.com/IMOKURI/dotfiles/refs/heads/master/.config/mise/config.toml + _banner "Install mise..." curl https://mise.run | sh From 5121346f703332e4a1ae27a0e85b49467352f9ea Mon Sep 17 00:00:00 2001 From: Yoshio Sugiyama Date: Sat, 11 Jul 2026 13:41:04 +0900 Subject: [PATCH 2/3] fix: actions Signed-off-by: Yoshio Sugiyama --- .github/workflows/e2e_test.yml | 4 ++-- install | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index a58dae3..756e81c 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -34,5 +34,5 @@ jobs: HOME: /root MISE_GITHUB_TOKEN: ${{ secrets.MISE_GITHUB_TOKEN }} run: | - cp -a "${GITHUB_WORKSPACE}" /root/.dotfiles - bash /root/.dotfiles/install + cp -a "${GITHUB_WORKSPACE}/.config/mise/config.toml" /root/.mise-config.toml + bash ${GITHUB_WORKSPACE}/install diff --git a/install b/install index 4478d16..e3df0bd 100755 --- a/install +++ b/install @@ -9,6 +9,9 @@ export PATH=${HOME}/.local/bin:${HOME}/bin:${HOME}/.local/share/mise/shims:/usr/ # Mise export MISE_GLOBAL_CONFIG_FILE="${HOME}/.mise-config.toml" +# Bootstrap branch +BRANCH="${BRANCH:-master}" + # Defind Colors BANNER="\033[38;2;101;178;255m" # BLUE CLEAR_COLOR="\033[0m" @@ -24,8 +27,10 @@ function _banner() { ##### Bootstrap ############################################################## -_banner "Download mise global config..." -curl -fsSL -o ${MISE_GLOBAL_CONFIG_FILE} https://raw.githubusercontent.com/IMOKURI/dotfiles/refs/heads/master/.config/mise/config.toml +if [ ! -f "${MISE_GLOBAL_CONFIG_FILE}" ]; then + _banner "Download mise global config..." + curl -fsSL -o ${MISE_GLOBAL_CONFIG_FILE} https://raw.githubusercontent.com/IMOKURI/dotfiles/refs/heads/${BRANCH}/.config/mise/config.toml +fi _banner "Install mise..." curl https://mise.run | sh From b0b7ad48b9316359e64a6955dd4a1822b09643ed Mon Sep 17 00:00:00 2001 From: Yoshio Sugiyama Date: Sat, 11 Jul 2026 14:14:10 +0900 Subject: [PATCH 3/3] docs: update readme Signed-off-by: Yoshio Sugiyama --- .github/workflows/e2e_test.yml | 1 + README.md | 14 +++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index 756e81c..6dcef4c 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -16,6 +16,7 @@ jobs: - ubuntu os_version: - 24.04 + - 26.04 runs-on: ubuntu-latest container: ${{ matrix.os_name }}:${{ matrix.os_version }} diff --git a/README.md b/README.md index a691e59..d15f32c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Dotfiles that can be installed by one command ## Platforms - Ubuntu 24.04 +- Ubuntu 26.04 ## Requirements @@ -42,20 +43,15 @@ bash -c "$(curl -fsSL https://git.io/imokuri)" Test in Docker ```bash -docker run -it --rm ubuntu:24.04 bash +docker run -it --rm ubuntu bash apt update -apt install curl git -y +apt install curl -y export MISE_GITHUB_TOKEN="" +export BRANCH="" -git clone https://github.com/IMOKURI/dotfiles.git ~/.dotfiles -cd ~/.dotfiles - -# Optional: Change the branch to test -git checkout - -bash install +curl -fsSL https://raw.githubusercontent.com/IMOKURI/dotfiles/refs/heads/${BRANCH}/install | bash ```