Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
bash: dont cd into homedir
Browse files Browse the repository at this point in the history
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 <joel@joelfernandes.org>
  • Loading branch information
joelagnel committed Jul 10, 2018
1 parent 60f64b2 commit a35c4db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion addons/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ fi

homedir=$( getent passwd "$USER" | cut -d: -f6 )
export HOME=$homedir
cd $HOME
1 change: 0 additions & 1 deletion addons/bashrc.silent
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ source .bashrc.common

homedir=$( getent passwd "$USER" | cut -d: -f6 )
export HOME=$homedir
cd $HOME

0 comments on commit a35c4db

Please sign in to comment.