1

I am a beginner Ubuntu user: I ran the command . ~/.bash_aliases and now anytime I open Ubuntu on my windows laptop, it reads 2 files to edit, opens each of the files and I press quit every time to get back to the command line. I would initially be back in the command line, but would be brought back to edit the tiles indefinitely until I closed the prompt. Closing the prompt and reopening it, it would make me edit the 2 files and then let me go back to the command line.

How do I stop Ubuntu from doing this?

Edit: There is nothing in the bash_aliases file, I moved all the content to the bashrc file. This is the contents of the bashrc file:

 BASE16_SHELL=$HOME/.config/base16-shell/ 
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"

export PS1="\e[95m\w\e[0m\$ "
alias ls="ls --color=auto"         
alias update="sudo apt-get install"
alias compile=". ~/.bashrc"
alias alias="vi ~/.bash_aliases"
alias thiscomp="cd /mnt/c/Users/name/Documents"
3
  • 2
    Can we get the contents of your .bash_aliases file? Apr 17 '18 at 22:51
  • 1
    Please edit your original question above and add the contents of the .bash_aliases file. Please use the { } icon above the edit window to format the code copied and pasted in the original question.
    – user68186
    Apr 17 '18 at 22:55
  • Are you running Ubuntu on Bash on Windows? ie WSL? Apr 18 '18 at 2:01
0

Delete the line:

alias alias="vi ~/.bash_aliases"

Also probably delete the line:

alias compile=". ~/.bashrc"
4
  • Should i source ~/.bashrc it after deleting it?
    – hello1094
    Apr 18 '18 at 2:00
  • @hello1094 Don't delete ~/.bashrc. There is no need to source it, it is automatic when you open a terminal window. Apr 18 '18 at 2:01
  • Sorry, i meant after deleting the 2 alias lines
    – hello1094
    Apr 18 '18 at 2:02
  • The existing alias will stay in place if you resource .bashrc. Close the terminal and reopen it. Apr 18 '18 at 2:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.