From bf9e2bf54c4d31a6e107da8cd315402ee735697c Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 5 Oct 2021 16:53:04 +0530 Subject: [PATCH] fish: Add aliases for cargo build commands --- fish/.config/fish/config.fish | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 59aeb61..5d5c556 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -240,6 +240,14 @@ alias vdu="nvim (git diff --name-only --diff-filter=U | uniq)" # Add unmerged files alias vdua="git add (git diff --name-only --diff-filter=U)" +# Cargo aliases +alias cba='cargo update && cargo build --all && cargo doc' +alias cbb='cargo build --all' +alias cbc='cargo clean' +alias cbd='cargo doc' +alias cbD='env BROWSER=firefox-wayland cargo doc --open' +alias cbu='cargo update' + # Git fzf helper functions # https://github.com/junegunn/fzf/wiki/Examples-(fish) function fco -d "Checkout a branch using fzf"