Bash_completion does not work, source command not found

I recently inherited a Ubuntu Hardy box, which works pretty funny out of the box. The first things I tried to do was edit my .bashrc profile to do some coloring and add some aliases that I usually have, but then when I try to run ~ / .bashrc, I get sh: source: not found, and I also noticed that the autocomplete tab also doesn’t work at all - I believe this is called bash_completetion, but as I am sure you can tell, I am not an expert.

Are there any specific files that I have to edit in order to get this basic functionality that I'm used to ready-made products? and is it unusual that the source command is not set?

+5
source share
3 answers

The process of general thought:

  • Use psto confirm that you are really using shnotbash

  • confirm that it /bin/bashexists and works correctly (and [re] install it if it does not)

  • use chshto change your login shell in bash

  • install the bash -completion package if it is missing

+11
source

bash: source: command not found ( , bash source, ). sh:, bash, bash , , Bourne /bin/sh. bash, bash, , ( , Ubuntu).

+1

Ubuntu /bin/sh . , , /bin/sh . bash, , bash. , , -, , * nix-:

  • Check which shell you use with echo $0
  • See which shells are available with cat /etc/shells
    • Find /bin/bashin the list if you want to use bash
    • If bash is not listed, apt-get install bash(defined by Ubuntu / Debian)
  • Start using bash with exec /bin/bash
  • Set bash as your login shell with chsh -s /bin/bash
0
source

All Articles