comment from Reynaldo Cordero about PS1 in nix-shell

This commit is contained in:
Yann Esposito (Yogsototh) 2020-01-10 12:21:33 +01:00
parent 9e1cbf9e52
commit 3d79f20371
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646
3 changed files with 5 additions and 5 deletions

View file

@ -160,7 +160,7 @@ The article contains five parts:
- More on infinite tree; a more math oriented discussion about
infinite trees
** Helpers :noexport:
** Helpers :noexport:
:PROPERTIES:
:CUSTOM_ID: helpers
:END:
@ -205,7 +205,7 @@ The article contains five parts:
name = "env";
buildInputs = nixPackages;
shellHook = ''
export PS1="\n[hs:\033[1;32m\]\W\[\033[0m\]]> "
export PS1="\n\[[hs:\033[1;32m\]\W\[\033[0m\]]> "
'';
}
#+end_src
@ -3737,7 +3737,7 @@ in
];
# nice prompt for the nix-shell
shellHook = ''
export PS1="\n[${name}:\033[1;32m\]\W\[\033[0m\]]> "
export PS1="\n\[[${name}:\033[1;32m\]\W\[\033[0m\]]> "
'';
};
}

View file

@ -29,7 +29,7 @@ in
];
# nice prompt for the nix-shell
shellHook = ''
export PS1="\n[${name}:\033[1;32m\]\W\[\033[0m\]]> "
export PS1="\n\[[${name}:\033[1;32m\]\W\[\033[0m\]]> "
'';
};
}

View file

@ -21,6 +21,6 @@
name = "env";
buildInputs = nixPackages;
shellHook = ''
export PS1="\n[hs:\033[1;32m\]\W\[\033[0m\]]> "
export PS1="\n\[[hs:\033[1;32m\]\W\[\033[0m\]]> "
'';
}