zjffun blog

Git Bash auto open home(~) when open

更新于 写于

bash
echo "

if [ \"\$(pwd)\" == '/' ]; then
  cd ~
fi

" >> ~/.bash_profile