mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 10:16:08 +00:00
Jan-29 23h16: dot
This commit is contained in:
parent
41a75851fa
commit
89fe968c0a
1 changed files with 12 additions and 2 deletions
14
scripts/dot
14
scripts/dot
|
|
@ -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" "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue