From 6e5f4f0ff241d88d40fcfd87565057b76be1d602 Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 15 Mar 2025 14:53:28 -0400 Subject: shell: use emacs bindings by default and fix history issue --- users/tdback/modules/shell/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/users/tdback/modules/shell/default.nix b/users/tdback/modules/shell/default.nix index d19f2ba..325b871 100644 --- a/users/tdback/modules/shell/default.nix +++ b/users/tdback/modules/shell/default.nix @@ -1,3 +1,9 @@ +# users/tdback/modules/shell/default.nix +# +# My shell environment. I opt to use bash since it comes installed by default +# on most distributions, including NixOS, and I spend a lot of time remoting +# onto servers at work. + { headless, ... @@ -5,7 +11,6 @@ { programs.bash = { enable = true; - historyFile = "~/.bash_history"; historyControl = [ "ignoredups" "ignorespace" @@ -17,7 +22,6 @@ # Sane options. set -o noclobber - set -o vi bind "\C-l":clear-screen bind "\C-p":previous-history bind "\C-n":next-history @@ -50,7 +54,6 @@ grep = "grep --color=auto"; diff = "diff --color=auto"; mkdir = "mkdir -p"; - deploy-flake = "f() { deploy .#$1 -s --remote-build --auto-rollback false && rsync -ax --delete ./ $1:/etc/nixos/; }; f"; }; }; -- cgit v1.2.3