.bashrc syntax error: unexpected end of file

前端 未结 8 735

I am getting an unexpected end of file error. I am not really sure how to fix it.

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bash         


        
8条回答
  •  盖世英雄少女心
    2021-01-05 15:08

    I had the same error due to missing "fi" line. Make sure to omit syntax errors. The original .bashrc is located in /etc/skel/. So just run the following command:

    cp /etc/skel/.bashrc ~

提交回复
热议问题