Skip to content

Commit

Permalink
mise: conditionally install cargo:i3status-rs based on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jc00ke committed Apr 20, 2024
1 parent 65f1460 commit 3b4ef1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .config/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rust = "1.77.1"
"cargo:difftastic" = "latest"
"cargo:eza" = "latest"
"cargo:fastmod" = "latest"
"cargo:i3status-rs" = "latest"
"cargo:i3status-rs" = "{{ exec(command='mise-i3status-rs') }}"
"cargo:just" = "latest"
"cargo:rage" = "latest"
"cargo:ripgrep" = "latest"
Expand Down
14 changes: 14 additions & 0 deletions .local/bin/mise-i3status-rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

case "$(uname -s)" in
Linux)
echo "latest"
;;
Darwin)
echo ""
;;
*)
echo "Unsupported platform"
exit 1
;;
esac

0 comments on commit 3b4ef1b

Please sign in to comment.