lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
GNU General Public License v3.0
435
stars
112
forks
source link
[PATCH]: Adding support for PS1 prompt changes #130
Lshell statically renders the prompt from lshell.conf and only updates the "directory" portion of it on chdir. Conversely, a bash-like shell continuously re-renders the prompt by looking at the 'PS1' environment variable.
The attached patch has been applied in our code base and is being shared Upstream
N.B: This does not address PS2 prompt changes although the patch may be easily extended to do so.
Lshell statically renders the prompt from lshell.conf and only updates the "directory" portion of it on chdir. Conversely, a bash-like shell continuously re-renders the prompt by looking at the 'PS1' environment variable.
The attached patch has been applied in our code base and is being shared Upstream N.B: This does not address PS2 prompt changes although the patch may be easily extended to do so.
lshell-prompt-change-support.patch.txt