Skip to content

Commit

Permalink
Merge branch 'master' into use-eza
Browse files Browse the repository at this point in the history
  • Loading branch information
shunk031 authored Feb 6, 2024
2 parents f8da0ee + e2868b1 commit 5161801
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
labels:
- "enhancement"
3 changes: 0 additions & 3 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ jobs:
run: |
git config --global commit.gpgsign false
- name: Checkout
uses: actions/checkout@v2

- name: Run benchmark
run: |
brew install gnu-time
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
SYSTEM: ${{ matrix.system }}
steps:
- name: Checkout repository
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Install tools
run: |
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
fi
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
# directory: ./coverage/kcov-merged
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ if eq .chezmoi.os "darwin" -}}
{{ include "../install/macos/common/age.sh" }}
{{ include "../install/common/age.sh" }}
{{ end -}}
5 changes: 5 additions & 0 deletions home/dot_config/sheldon/plugins.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ apply = ['source']
local = '~/.local/bin/common'
use = ['gpg.sh']
apply = ['source']

[plugins.history]
local = '~/.local/bin/server'
user = ['history.zsh']
apply = ['source']
7 changes: 7 additions & 0 deletions home/dot_local/bin/server/history.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env zsh

setopt inc_append_history

export HISTFILE=${HISTFILE:-$HOME}/.zsh_history
export HISTSIZE=10000
export SAVEHIST=10000
2 changes: 2 additions & 0 deletions install/common/age.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ function decrypt_age_private_key() {

if [ ! -f "${age_dst_key}" ]; then
mkdir -p "${age_dir}"

echo "Decrypting ${age_src_key} to ${age_dst_key}"
age --decrypt --output "${age_dst_key}" "${age_src_key}"
chmod 600 "${age_dst_key}"
fi
Expand Down
8 changes: 4 additions & 4 deletions install/macos/common/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ if [ "${DOTFILES_DEBUG:-}" ]; then
set -x
fi

function install_docker_docker_compose() {
function install_docker() {
brew install --cask docker
}

function uninstall_docker_docker_compose() {
brew uninstall docker
function uninstall_docker() {
brew uninstall --cask docker --force
}

function main() {
install_docker_docker_compose
install_docker
}

if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
Expand Down
6 changes: 5 additions & 1 deletion install/ubuntu/server/sheldon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ readonly BIN_DIR="${HOME}/.local/bin/server"
function install_sheldon() {
mkdir -p "${BIN_DIR}"

if [[ -n "${DOTFILES_GITHUB_PAT}" ]]; then
export GITHUB_TOKEN=${DOTFILES_GITHUB_PAT}
fi

curl --proto '=https' -fLsS https://rossmacarthur.github.io/install/crate.sh |
bash -s -- --repo rossmacarthur/sheldon --to "${BIN_DIR}"
bash -s -- --repo rossmacarthur/sheldon --to "${BIN_DIR}" --force
}

function uninstall_sheldon() {
Expand Down
2 changes: 1 addition & 1 deletion tests/install/macos/common/docker.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function setup() {
}

function teardown() {
run uninstall_docker_docker_compose
run uninstall_docker
}

@test "[macos] docker" {
Expand Down

0 comments on commit 5161801

Please sign in to comment.