comment from Reynaldo Cordero about PS1 in nix-shell
This commit is contained in:
parent
9e1cbf9e52
commit
3d79f20371
|
@ -160,7 +160,7 @@ The article contains five parts:
|
||||||
|
|
||||||
- More on infinite tree; a more math oriented discussion about
|
- More on infinite tree; a more math oriented discussion about
|
||||||
infinite trees
|
infinite trees
|
||||||
** Helpers :noexport:
|
** Helpers :noexport:
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: helpers
|
:CUSTOM_ID: helpers
|
||||||
:END:
|
:END:
|
||||||
|
@ -205,7 +205,7 @@ The article contains five parts:
|
||||||
name = "env";
|
name = "env";
|
||||||
buildInputs = nixPackages;
|
buildInputs = nixPackages;
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export PS1="\n[hs:\033[1;32m\]\W\[\033[0m\]]> "
|
export PS1="\n\[[hs:\033[1;32m\]\W\[\033[0m\]]> "
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
@ -3737,7 +3737,7 @@ in
|
||||||
];
|
];
|
||||||
# nice prompt for the nix-shell
|
# nice prompt for the nix-shell
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export PS1="\n[${name}:\033[1;32m\]\W\[\033[0m\]]> "
|
export PS1="\n\[[${name}:\033[1;32m\]\W\[\033[0m\]]> "
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ in
|
||||||
];
|
];
|
||||||
# nice prompt for the nix-shell
|
# nice prompt for the nix-shell
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export PS1="\n[${name}:\033[1;32m\]\W\[\033[0m\]]> "
|
export PS1="\n\[[${name}:\033[1;32m\]\W\[\033[0m\]]> "
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
name = "env";
|
name = "env";
|
||||||
buildInputs = nixPackages;
|
buildInputs = nixPackages;
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export PS1="\n[hs:\033[1;32m\]\W\[\033[0m\]]> "
|
export PS1="\n\[[hs:\033[1;32m\]\W\[\033[0m\]]> "
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue