Commit eb7213bae44d

Vincent Demeester <vincent@sbr.pm>
2018-08-16 15:02:41
Move go.fish to a file…
… and put go fish aliases there too Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 2f25d17
fish/go.fish
@@ -0,0 +1,9 @@
+set -gx GOPATH $HOME
+
+function pprof
+    nix run -f ~/.config/nixpkgs/channels.nix unstable.pprof -c pprof $argv
+end
+
+function golangci-lint
+    nix run -f ~/.config/nixpkgs/channels.nix unstable.golangci-lint -c golangci-lint $argv
+end
fish/nix-aliases.fish
@@ -5,11 +5,3 @@ end
 function wakeonlan
     nix run nixpkgs.python36Packages.wakeonlan -c wakeonlan $argv
 end
-
-function pprof
-    nix run -f ~/.config/nixpkgs/channels.nix unstable.pprof -c pprof $argv
-end
-
-function golangci-lint
-    nix run -f ~/.config/nixpkgs/channels.nix unstable.golangci-lint -c golangci-lint $argv
-end
dev.go.nix
@@ -2,9 +2,7 @@
 
 {
   imports = [ ./dev.nix ];
-  xdg.configFile."fish/conf.d/go.fish".text = ''
-    set -gx GOPATH $HOME
-  '';
+  xdg.configFile."fish/conf.d/go.fish".source = ./fish/go.fish;
   home.packages = with pkgs; [
     go
     gcc