Skip to content

Commit

Permalink
use deb for dive
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaron committed May 6, 2024
1 parent c8ee950 commit 00650ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
20 changes: 20 additions & 0 deletions home/.chezmoiscripts/linux/run_onchange_before_dive.sh.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env sh

set -e

echo "▶️ installing dive"

{{ $dive_version := (gitHubLatestRelease "wagoodman/dive").TagName -}}

echo {{ $dive_version }}

tmp_dir=$(mktemp --directory)
curl --show-error --silent --fail --location \
--output "$tmp_dir"/dive_linux_amd64.deb \
"https://github.com/wagoodman/dive/releases/download/{{ $dive_version }}/dive_{{ trimPrefix "v" $dive_version }}_linux_amd64.deb"

sudo dpkg --install "$tmp_dir"/dive_linux_amd64.deb

rm -rf "$tmp_dir"

dive --version
2 changes: 1 addition & 1 deletion home/private_dot_config/private_zsh/private_dot_zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if ! zgenom saved; then
has yarn && zgenom ohmyzsh plugins/yarn
has fd && zgenom ohmyzsh plugins/fd

# Use 'acp' command to change profiles
# Use 'acl' command to change profiles
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/aws
has aws && zgenom ohmyzsh plugins/aws

Expand Down
9 changes: 0 additions & 9 deletions home/private_dot_config/private_zsh/zsh.d/dive.zsh

This file was deleted.

0 comments on commit 00650ad

Please sign in to comment.