From 6b384feb786de8099a2c53eab606b02a3a32e39f Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Thu, 21 Mar 2024 22:48:14 +0100 Subject: [PATCH 1/2] shell: add drag command --- nix-os/shell.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix-os/shell.nix b/nix-os/shell.nix index 2975c9b..2b2fa88 100644 --- a/nix-os/shell.nix +++ b/nix-os/shell.nix @@ -17,12 +17,16 @@ let setuptools ] ++ old.propagatedBuildInputs; }); + aliasDrag = pkgs.writeScriptBin "drag" '' + ${unstablePkgs.ripdrag}/bin/ripdrag -Axd $@ + ''; in { imports = [ ./unstable-packages.nix ]; environment.systemPackages = with pkgs; [ + aliasDrag rangerGit kitty zoxide From 5ca45e2ac5eb51959e9928ef07f7a6b52949123d Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Wed, 3 Apr 2024 02:38:58 +0200 Subject: [PATCH 2/2] shell.nix: Don't keep history of commands that starts with space in bash --- nix-os/shell.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix-os/shell.nix b/nix-os/shell.nix index 2b2fa88..5c2bc44 100644 --- a/nix-os/shell.nix +++ b/nix-os/shell.nix @@ -32,6 +32,10 @@ in zoxide ]; + programs.bash.shellInit = '' + HISTCONTROL=ignoreboth + ''; + programs.bash.interactiveShellInit = '' if test -n "$KITTY_INSTALLATION_DIR"; then export KITTY_SHELL_INTEGRATION="enabled,no-sudo"