aboutsummaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-03-15 14:53:28 -0400
committertdback <tyler@tdback.net>2025-03-15 14:53:28 -0400
commit6e5f4f0ff241d88d40fcfd87565057b76be1d602 (patch)
tree8636c5eea046d823507be907f752dca4def9d932 /users
parent6d735b3d47845a95b5b12cb991b47bd7c236d500 (diff)
shell: use emacs bindings by default and fix history issue
Diffstat (limited to 'users')
-rw-r--r--users/tdback/modules/shell/default.nix9
1 files 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";
};
};