diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-12-01T16·59-0500 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-12-14T18·18+0000 |
commit | 43355f1f923ed63ac7f58e64e6815d14eb98ebb0 (patch) | |
tree | 4e7bea2ca337af229195ba3b3c7de36d1a2543ed /users/glittershark/system/home | |
parent | cdedcc6238652599534b65f98b9422029ed05368 (diff) |
feat(gs/system): Add some rust aliases r/1997
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 <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/system/home')
-rw-r--r-- | users/glittershark/system/home/modules/development.nix | 2 | ||||
-rw-r--r-- | users/glittershark/system/home/modules/development/rust.nix | 8 |
2 files changed, 8 insertions, 2 deletions
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"; + }; } |