Skip to content

Commit

Permalink
flake devshell ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
makemake-kbo committed Mar 27, 2024
1 parent 4d368d6 commit 6cca9ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
devShells.default = pkgs.mkShell {
inputsFrom = [ self.packages.${system}.myapp ];
packages = [ pkgs.poetry ];

shellHook = ''
export OLD_PS1="$PS1" # Preserve the original PS1
export PS1="nix-shell:hrotti $PS1" # Customize this line as needed
'';

# reset ps1
shellExitHook = ''
export PS1="$OLD_PS1"
'';
};
});
}

0 comments on commit 6cca9ac

Please sign in to comment.