3

I created the file ~/.bash_aliases within these lines:

# my alias here

eclipse="eclipse</dev/null &>/dev/null &"
okular="okular</dev/null &>/dev/null &"
libre="libreoffice</dev/null &>/dev/null &"

My ~/.bashrc is ready to find aliases:

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

I then executed . ~/.basharc and also source .bashrc but aliases I created still don't work.

heemayl
  • 93,925
glc78
  • 491

1 Answers1

7

You have defined plain variables, not aliases.

The alias definitions in bash must start with the keyword alias, so make the definitions as:

alias eclipse="eclipse </dev/null &>/dev/null &"
alias okular="okular </dev/null &>/dev/null &"
alias libre="libreoffice </dev/null &>/dev/null &"
heemayl
  • 93,925