{ config, lib, pkgs, ... }: { programs.bash = { enable = true; sessionVariables = { # for when Nix supports this NIX_SHELL_PRESERVE_PROMPT = "1"; }; initExtra = '' TITLEBAR='\[\033]0;\u@\h:\w\007\]' if [ -z $IN_NIX_SHELL ] ; then export PS1="$TITLEBAR[\[\e[34m\]\u@\h \W\[\e[39m\]]\$ " else export PS1="$TITLEBAR[\[\e[34m\]\u@\h \W\[\e[39m\]]* " fi export PS2="> " ''; }; # automatically add the slash after a sym-linked directory # https://unix.stackexchange.com/questions/257861 home.file.".inputrc".text = '' set mark-symlinked-directories on ''; }