From 9f636334b1f07466320b504e0eeb58473f76be9b Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 13 Mar 2025 20:01:32 +0300 Subject: [PATCH] use fish functions and add lazygit --- home/fish.nix | 8 ++++++++ home/home.nix | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/home/fish.nix b/home/fish.nix index 11f5e6b..06fe65e 100644 --- a/home/fish.nix +++ b/home/fish.nix @@ -10,6 +10,14 @@ free = "free -h"; df = "df -h"; du = "du -h"; + lg = "lazygit"; + }; + functions = { + gitu = '' + git add --all + git commit -m "$argv" + git push + ''; }; }; } \ No newline at end of file diff --git a/home/home.nix b/home/home.nix index 5ef706c..a3a3707 100644 --- a/home/home.nix +++ b/home/home.nix @@ -1,4 +1,4 @@ -{config, ...}: { +{config, pkgs, ...}: { imports = [ ./alacritty.nix ./tmux @@ -17,7 +17,7 @@ home.homeDirectory = "/home/osbm"; home.packages = [ - # dont install packages here, just use normal nixpkgs + pkgs.lazygit ]; home.stateVersion = config.system.stateVersion;