commit aed82ca2c7042044ce704b57f3c94724e29e60dd
parent 2e3c2ad28851c4f37732f271a0f6ff716f469483
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 29 Aug 2018 16:52:04 +0200
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>
Diffstat:
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/fish.nix b/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)
diff --git a/fish/git.fish b/fish/git.fish
@@ -0,0 +1,3 @@
+function git-annex
+ nix run nixpkgs.gitAndTools.git-annex -c git-annex $argv
+end
diff --git a/git.nix b/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;