From a35c4db31b89b903cf3a424d156c9d668ab66fa3 Mon Sep 17 00:00:00 2001 From: Joel Fernandes Date: Tue, 10 Jul 2018 09:34:29 -0700 Subject: [PATCH] bash: dont cd into homedir Doing this is more complicated, since several command expect running from /. Also users may be depending on that. Just prevent cd for now. Signed-off-by: Joel Fernandes --- addons/bashrc | 1 - addons/bashrc.silent | 1 - 2 files changed, 2 deletions(-) diff --git a/addons/bashrc b/addons/bashrc index 30c1388..675572d 100644 --- a/addons/bashrc +++ b/addons/bashrc @@ -19,4 +19,3 @@ fi homedir=$( getent passwd "$USER" | cut -d: -f6 ) export HOME=$homedir -cd $HOME diff --git a/addons/bashrc.silent b/addons/bashrc.silent index 95f23f0..1e52500 100644 --- a/addons/bashrc.silent +++ b/addons/bashrc.silent @@ -2,4 +2,3 @@ source .bashrc.common homedir=$( getent passwd "$USER" | cut -d: -f6 ) export HOME=$homedir -cd $HOME