Ho aggiunto questa riga nel mio ~/.bashrcfile.
alias myserver='ssh davidfaux@davidfaux.com'
Tuttavia, quando apro il terminale e corro myserver, il terminale si lamenta
-bash: myserver: command not found
Quando provo il mio file .bashrc, tuttavia, ( . .bashrc), l'alias funziona.
Tuttavia, non desidero eseguire il sorgente del file ogni volta che apro il terminale affinché l'alias funzioni. Come posso farlo accadere?
. .bashrcalle .bash_profileopere.