Source ~/.bashrc [fixed -- closed]

System is rpi b+ armv6l
dietpi 7.9.3


Got some aliases in ~/.bash_pers
Addiert also

 if [  -f ~/.bash_pers ]; then . ~/.bash_pers
fi

But didn’t work. Also

. ~/.bashrc
And source ~/.bashrc

Didn’ work

-bash:  source: filename hast to be an  argument

Sorry German looks

-bash: source: ein  Dateiname wird als Argument benötigt

What’s going on there?

Did i something wrong?

Thx for your help

if [ -f ~/.bash_pers ]; then
    . ~/.bash_pers
fi

I suppose bash_pers is executable.

Deu:

ja selbstverständlich sind sowohl .bashrc und .bash_pers ausführbar.

Aber auch ohne den if bis fi teil in. .Bashrc
Kann ich die .bashrc nicht neu laden!

eng:

yes of course both .bashrc and .bash_pers are executable.

But also without the if bis fi part in. .Bashrc I can not reload the .bashrc!

Yeah i didn’t know why but now with your fi part is all fine!

Thanks a lot to you

Bash is sensitive with the indentation and grammar. You cannot make it all in one line as you had it.