about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-12T13·24+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-12T13·24+0100
commit869a20f482869ca903a95d6de08d5e283f826aff (patch)
tree80b5c8b5695821130c158c6f2c9579d0890962cc
parentbba3f16c43d9cad6ec92cbdfbfe69703701319bc (diff)
Define alias for cd-ing to ~/briefcase
Small but useful alias.
-rw-r--r--configs/.config/nixpkgs/home.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix
index a2f00898794d..ee461dc9b33c 100644
--- a/configs/.config/nixpkgs/home.nix
+++ b/configs/.config/nixpkgs/home.nix
@@ -1,7 +1,14 @@
 { config, pkgs, ... }:
 
+# I know of two ways to install my home environment using home-manager:
+#
+# $ home-manager switch
+# $ nix-shell ~/home-manager -A install
+#
+# I believe these calls depend on nixpkgs being set in NIX_PATH, which is a
+# dependency that I'm trying to prune...
 let
-  briefcase = import <briefcase> {};
+  briefcase = import /home/wpcarro/briefcase {};
 in {
   home = {
     packages = with pkgs; [
@@ -103,6 +110,7 @@ in {
       gsh = "git show HEAD";
       gpf = "git push --force-with-lease";
       gd = "git diff";
+      b = "cd ~/briefcase";
     };
     shellAbbrs = {
       sys = "systemctl";
@@ -122,9 +130,11 @@ in {
     };
   };
 
-  programs.fzf = {
-    enable = true;
+  programs.fzf = let
     defaultCommand = "fd --hidden --follow --exclude '.git'";
+  in {
+    enable = true;
+    defaultCommand = defaultCommand;
     fileWidgetCommand = defaultCommand;
     enableFishIntegration = true;
   };