Commit aed82ca2c704

Vincent Demeester <vincent@sbr.pm>
2018-08-29 16:52:04
Add a git fish file…
- Move git specific shellAbbrs to `git.nix` - Add a `git-annex` lazy func. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 2e3c2ad
Changed files (3)
fish/git.fish
@@ -0,0 +1,3 @@
+function git-annex
+    nix run nixpkgs.gitAndTools.git-annex -c git-annex $argv
+end
fish.nix
@@ -3,10 +3,6 @@
 {
   programs.fish = {
     enable = true;
-    shellAbbrs = {
-      gs = "git status";
-      gb = "git b";
-    };
     shellAliases = import ./aliases.nix;
     shellInit = ''
     eval (${pkgs.direnv}/bin/direnv hook fish)
git.nix
@@ -12,6 +12,11 @@ rec {
     gitAndTools.tig
     prm
   ];
+  xdg.configFile."fish/conf.d/git.fish".source = ./fish/git.fish;
+  programs.fish.shellAbbrs = {
+    gs = "git status";
+    gb = "git b";
+  };
   programs.git = {
     enable = true;