]> Skullheadx's Git Forge - nixos.git/commitdiff
bash and readline config
authorSkullheadx <admonty1@protonmail.com>
Fri, 1 May 2026 16:12:30 +0000 (12:12 -0400)
committerSkullheadx <admonty1@protonmail.com>
Fri, 1 May 2026 16:12:30 +0000 (12:12 -0400)
configuration.nix

index ea3ac6e428b8d2a224ab8da0ba4ab903ab026131..322bd0728ce9fca55fb305da93bc3b9065c48de7 100644 (file)
     };
   };
 
+  programs.bash = {
+    enable = true;
+    interactiveShellInit = ''
+      shopt -s autocd
+      shopt -s cdable_vars
+      shopt -s cdspell
+      shopt -s dirspell
+      shopt -s checkjobs
+      shopt -s cmdhist
+      shopt -s histappend
+      shopt -s globstar
+      shopt -s extglob
+    '';
+    promptInit = ''
+      PS1="\[\e[97m\][\[\e[m\]\[\e[92m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[92m\]\h\[\e[m\]:\[\e[92m\]\w\[\e[m\]\[\e[97m\]]\[\e[m\]\[\e[97m\]\\$\[\e[m\] "
+    '';
+  };
+
+  environment.etc."inputrc".text = ''
+    set editing-mode vi
+    set show-mode-in-prompt on
+    set keyseq-timeout 10
+
+    set vi-ins-mode-string "\1\e[5 q\2"
+    set vi-cmd-mode-string "\1\e[2 q\2"
+
+
+    set colored-stats on
+    set colored-completion-prefix on
+    set blink-matching-paren on
+
+    set completion-ignore-case on
+    set show-all-if-ambiguous on
+    set completion-map-case on
+  '';
+
+
   programs.steam = {
     enable = true;
     remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play