From 9cdd6458db572a79516215d655acc1caa1c1d3ec Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 29 Jan 2024 14:30:45 +0100 Subject: [PATCH] feat: install and use ed(1) --- users/buffet/bash.nix | 4 ++++ users/buffet/default.nix | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/users/buffet/bash.nix b/users/buffet/bash.nix index 576527d..1ce7ce2 100644 --- a/users/buffet/bash.nix +++ b/users/buffet/bash.nix @@ -34,6 +34,10 @@ in { "nocaseglob" ]; + bashrcExtra = '' + [[ -f ~/.profile ]] && . ~/.profile + ''; + initExtra = '' __prompt() { local status="$?" diff --git a/users/buffet/default.nix b/users/buffet/default.nix index e3e5974..5d1e9c5 100644 --- a/users/buffet/default.nix +++ b/users/buffet/default.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + pkgs, + lib, + ... +}: { imports = [ ./bash.nix ./cargo.nix @@ -32,7 +36,7 @@ stateVersion = "23.11"; sessionVariables = { - EDITOR = "nvim"; + EDITOR = lib.mkForce "${pkgs.oed}/bin/ed"; }; packages = with pkgs; [ @@ -67,6 +71,7 @@ man-pages man-pages-posix mosh + oed okular pavucontrol radare2