From 0c9740342b05d53c3e8ef903c869a8cdcfe1b566 Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Fri, 14 Oct 2022 12:38:36 +0530 Subject: [PATCH] Minor changes --- home.nix | 1 + justfile | 2 +- nix.nix | 2 +- programs/git.nix | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/home.nix b/home.nix index 8f34e19..3829404 100644 --- a/home.nix +++ b/home.nix @@ -17,6 +17,7 @@ br = "${pkgs.broot}/bin/broot"; du = "${pkgs.dua}/bin/dua interactive"; tf = "${pkgs.coreutils-full}/bin/tail -f"; + cat = "bat"; }; home.sessionVariables = { EDITOR = "micro"; }; diff --git a/justfile b/justfile index c75a4a7..6ab5c1c 100644 --- a/justfile +++ b/justfile @@ -24,7 +24,7 @@ _build: build: (_run "_build") _switch: - home-manager switch --flake "{{ root_dir }}#abhinav" + home-manager -v switch --flake "{{ root_dir }}#abhinav" # switch to latest home-manager generation switch: (_run "_switch") diff --git a/nix.nix b/nix.nix index c9d4fc6..cd61e59 100644 --- a/nix.nix +++ b/nix.nix @@ -4,7 +4,7 @@ nixpkgs.config.allowUnfree = true; nix.package = pkgs.nixUnstable; nix.settings = { - experimental-features = "nix-command flakes repl-flake"; + experimental-features = [ "nix-command" "flakes" "repl-flake" ]; max-jobs = 6; cores = 2; auto-optimise-store = true; diff --git a/programs/git.nix b/programs/git.nix index f299cd6..5ce59da 100644 --- a/programs/git.nix +++ b/programs/git.nix @@ -13,7 +13,9 @@ p = "push"; s = "status"; ui = "!gitui"; + ap = "add -p"; ca = "commit --amend --no-edit"; + cm = "commit -m"; pf = "push --force-with-lease"; lg = "log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'";