I keep getting the following error when I open my terminal. I am running Fedora 19.
bash: Source: command not found
The above error also caused my screen to go blank when I tried to login. I then renamed by .bashrc and .bash_profile files, and the system came up fine. So it seems the problem may be with one of these files, but I am unable tell what it is.
Here are my bashrc and bash_profile files:
[gmahan@localhost ~]$ cat .bashrc
# .bashrc
[ -z "$PS1" ] && return
Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
[gmahan@localhost ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [-f ~/.bashrc]; then
. ~/.bashrc
fi
# User specific environment and startup programs
Can anyone tell me what the problem might be. Thanks.
source
notSource
. – chaos Mar 13 '15 at 12:42[ -f ~/.bashrc ]
. See http://unix.stackexchange.com/q/134472 . – Emil Jeřábek Mar 13 '15 at 16:42