From 43355f1f923ed63ac7f58e64e6815d14eb98ebb0 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 1 Dec 2020 11:59:36 -0500 Subject: feat(gs/system): Add some rust aliases These take precedence over cabal old-style aliases, since those aren't used anymore Change-Id: Iad1593bffb35d8f7b9c7df16c7c2da09a6ebb906 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2220 Reviewed-by: glittershark Tested-by: BuildkiteCI --- users/glittershark/system/home/modules/development.nix | 2 -- users/glittershark/system/home/modules/development/rust.nix | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'users') diff --git a/users/glittershark/system/home/modules/development.nix b/users/glittershark/system/home/modules/development.nix index 2df65145393b..9f8f49f94b6b 100644 --- a/users/glittershark/system/home/modules/development.nix +++ b/users/glittershark/system/home/modules/development.nix @@ -168,10 +168,8 @@ with lib; "grl" = "git reflog"; # Haskell - "cb" = "cabal build"; "crl" = "cabal repl"; "cr" = "cabal run"; - "ct" = "cabal run test"; "cnb" = "cabal new-build"; "cob" = "cabal old-build"; "cnr" = "cabal new-run"; diff --git a/users/glittershark/system/home/modules/development/rust.nix b/users/glittershark/system/home/modules/development/rust.nix index 17bda9c746dc..29eda82dc188 100644 --- a/users/glittershark/system/home/modules/development/rust.nix +++ b/users/glittershark/system/home/modules/development/rust.nix @@ -1,8 +1,16 @@ { config, lib, pkgs, ... }: + { home.packages = with pkgs; [ rustup rust-analyzer + cargo-edit ]; + + programs.zsh.shellAliases = { + "cg" = "cargo"; + "cb" = "cargo build"; + "ct" = "cargo test"; + }; } -- cgit 1.4.1