Jan-29 23h16: dot

This commit is contained in:
Denis França 2025-01-29 23:16:30 +00:00
parent 41a75851fa
commit 89fe968c0a

View file

@ -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"
@ -24,4 +34,4 @@ dot::clone_if_necessary() {
dot::clone_if_necessary
"${DOTFILES}/bin/dot" "$@"
"${DOTFILES}/bin/dot" "$@"