From da5dd240a3a5db7ca6e168b346c5269364d561cf Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Fri, 3 Apr 2020 16:16:48 +0800 Subject: [PATCH] Set PS1 env --- init-kubectl.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init-kubectl.sh b/init-kubectl.sh index b939ed4..febade3 100644 --- a/init-kubectl.sh +++ b/init-kubectl.sh @@ -13,6 +13,7 @@ mount -t tmpfs -o size=${SESSION_STORAGE_SIZE} tmpfs /nonexistent cd /nonexistent cp /root/.bashrc ./ echo 'source /opt/kubectl-aliases/.kubectl_aliases' >> .bashrc +echo 'PS1="> "' >> .bashrc mkdir -p .kube export HOME=/nonexistent @@ -45,6 +46,4 @@ chown -R nobody:nogroup .kube export TMPDIR=/nonexistent -export PS1=">" - exec su -s /bin/bash nobody \ No newline at end of file