Skip to content

Commit

Permalink
Jan-29 23h16: dot
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro committed Jan 29, 2025
1 parent 41a7585 commit 89fe968
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/dot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ export CARGO_PATH="${NAVI_HOME}/core/Cargo.toml"

# TODO: bump dotfiles + remove this fn
log::note() { log::info "$@"; }
export -f log::note

cargo() {
if [ "${1:-}" = "install" ] && [ "${2:-}" = "cross" ]; then
shift 2 || true
command cargo install cross --git https://github.com/cross-rs/cross "$@"
else
command cargo "$@"
fi
}

export -f log::note cargo

dot::clone() {
git clone 'https://github.com/denisidoro/dotfiles' "$DOTFILES"
Expand All @@ -24,4 +34,4 @@ dot::clone_if_necessary() {

dot::clone_if_necessary

"${DOTFILES}/bin/dot" "$@"
"${DOTFILES}/bin/dot" "$@"

0 comments on commit 89fe968

Please sign in to comment.