shell init issue when click tab, what's wrong with getcwd?

前端 未结 4 1118
死守一世寂寞
死守一世寂寞 2021-01-30 09:53

once i click Tab on bash, the error message will appear, what\'s wrong?

symlink-hook: error retrieving current directory: getcwd: cannot access parent directorie         


        
4条回答
  •  灰色年华
    2021-01-30 10:22

    This usually occurs when your current directory does not exist anymore. Most likely, from another terminal you remove that directory (from within a script or whatever). To get rid of this, in case your current directory was recreated in the meantime, just cd to another (existing) directory and then cd back; the simplest would be: cd; cd -.

提交回复
热议问题