I have seen some people use a .alias file to keep all the aliases
sepparate from their .bashrc code. I am getting errors when I try
to do this, and I don't know why?
I put the following line in my .bashrc file:
# Aliases
# #######
source '/home/ted/.alias'
and the following in the .alias file:
# Some example alias instructions
# If these are enabled they will be used instead of any instructions
# they may mask. For example, alias rm='rm -i' will mask the rm
# application. To override the alias instruction use a \ before, ie
# \rm will call the real rm not the alias.
# Interactive operation...
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
# Default to human readable figures
alias df='df -h'
alias du='du -h'
# Misc

alias less='less -r' # raw control characters
alias whence='type -a' # where, of a sort
alias grep='grep --color' # show differences in colour
# Some shortcuts for different directory listings
alias ls='ls -hF --color=tty' # classify files in colour
alias lr='ls -lrt'
alias ls='ls -skFGh'
# alias dir='ls --color=auto --format=vertical'
# alias vdir='ls --color=auto --format=long'
alias ll='ls -l' # long list
alias la='ls -A' # all but . and ..
alias l='ls -CF' #
but I get this error:
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
What am I doing wrong here