home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit eb7213bae44dd06bb3109e44138eb143de511fe4
parent 2f25d17715f8a557c381c5a1fe1381191a29b524
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 16 Aug 2018 15:02:41 +0200

Move go.fish to a file…

… and put go fish aliases there too

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mdev.go.nix | 4+---
Afish/go.fish | 9+++++++++
Mfish/nix-aliases.fish | 8--------
3 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/dev.go.nix b/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 diff --git a/fish/go.fish b/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 diff --git a/fish/nix-aliases.fish b/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