Search code examples
bashubuntusudo

bash no abash: /src/github.com/tomnomnom/gf/gf-completion.bash: No such file or directory


When ever I do sudo su in ubuntu i get this weird error everytime there is not any problem in using anything but I just want to ask why is it coming even tho even do i have deleted this file already why is it automatically executing bash to this file


Solution

  • The problem was an old code in his ~/.bashrc file which was found by grep -Fre gf-completion.bash /etc/ ~/.bashrc*:

    /root/.bashrc:source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.bash