mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
39 lines
882 B
Bash
39 lines
882 B
Bash
#
|
|
# Rust environment setup.
|
|
#
|
|
|
|
# ==============================================================================
|
|
# aliases
|
|
# ==============================================================================
|
|
|
|
alias c="cargo"
|
|
|
|
if command-exists eza; then
|
|
alias ll="eza -lagHS --icons --git"
|
|
alias llt="ll --tree"
|
|
fi
|
|
|
|
if command-exists bat; then
|
|
alias cat="bat -P"
|
|
fi
|
|
|
|
if command-exists batman; then
|
|
alias man="batman"
|
|
fi
|
|
|
|
if command-exists batdiff; then
|
|
alias biff="batdiff"
|
|
fi
|
|
|
|
# ==============================================================================
|
|
# completions
|
|
# ==============================================================================
|
|
|
|
if command-exists rustup; then
|
|
setup-completions rustup "$(command-path rustup)" rustup completions zsh
|
|
fi
|
|
|
|
if command-exists cargo; then
|
|
setup-completions cargo "$(command-path cargo)" rustup completions zsh cargo
|
|
fi
|