about summary refs log tree commit diff
path: root/configs/.config/nixpkgs/home.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configs/.config/nixpkgs/home.nix')
-rw-r--r--configs/.config/nixpkgs/home.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix
index d9b3cae931a8..c5765a843cff 100644
--- a/configs/.config/nixpkgs/home.nix
+++ b/configs/.config/nixpkgs/home.nix
@@ -71,9 +71,40 @@
     };
   };
 
+  programs.fish = {
+    enable = true;
+    shellAliases = {
+      c = "xclip -selection clipboard -i";
+      p = "xclip -selection clipboard -o";
+      cat = "bat";
+      rgh = "rg --hidden";
+      fdh = "fd --hidden";
+      tpr = "tput reset";
+      ls = "exa --sort=type";
+      ll = "exa --long --sort=type";
+      la = "exa --long --all --sort=type";
+      gst = "git status";
+      gsh = "git show HEAD";
+      gpf = "git push --force-with-lease";
+      gd = "git diff";
+    };
+    shellAbbrs = {
+      sys = "systemctl";
+      sysu = "systemctl --user";
+    };
+    promptInit = builtins.readFile ../fish/prompt.fish;
+  };
+
   programs.fzf = rec {
+    enable = true;
     defaultCommand = "fd --hidden --follow --exclude '.git'";
     fileWidgetCommand = defaultCommand;
+    enableFishIntegration = true;
+  };
+
+  programs.direnv = {
+    enable = true;
+    enableFishIntegration = true;
   };
 
   ##############################################################################