summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-11-30 18:46:16 +0100
committerAlan Pearce2024-11-30 18:46:16 +0100
commit7fce1b243c61d7c57db369c28305828977b8f3c3 (patch)
tree69f1ac8b39a24757c25d9529c4cc4900e49b51bd
parentd1757e3baf123a7339848f55c6402022a3911b8a (diff)
downloadnixfiles-7fce1b243c61d7c57db369c28305828977b8f3c3.tar.lz
nixfiles-7fce1b243c61d7c57db369c28305828977b8f3c3.tar.zst
nixfiles-7fce1b243c61d7c57db369c28305828977b8f3c3.zip
golang: replace fish abbrs with shell aliases
-rw-r--r--user/settings/development/golang.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/user/settings/development/golang.nix b/user/settings/development/golang.nix
index c0f92209..34a74896 100644
--- a/user/settings/development/golang.nix
+++ b/user/settings/development/golang.nix
@@ -15,6 +15,13 @@
   home.sessionPath = [
     "$HOME/go/bin"
   ];
+  home.shellAliases = {
+    gom = "go mod";
+    gomt = "go mod tidy";
+    gomd = "go mod download";
+    gog = "go get";
+    gogu = "go get -u";
+  };
   home.sessionVariables.GOTOOLCHAIN = "local"; # use installed go tools
   programs.emacs.extraPackages = epkgs: (with epkgs; [
     go-eldoc
@@ -24,8 +31,4 @@
   programs.neovim.plugins = with pkgs.vimPlugins; [
     coc-go
   ];
-  programs.fish.shellAbbrs = {
-    gmt = "go mod tidy";
-    gmd = "go mod download";
-  };
 }