Para ksh
:
printf "%s\n" "alias shh='sqlplus hfdora/hfdora@hfd1" >> ~/.kshrc
source ~/.kshrc
Para bash
:
printf "%s\n" "alias shh='sqlplus hfdora/hfdora@hfd1" >> ~/.bashrc
source ~/.bashrc
Para zsh
:
printf "%s\n" "alias shh='sqlplus hfdora/hfdora@hfd1" >> ~/.zshrc
source ~/.zshrc
Use source
para o efeito instantâneo
E como @glennjackman disse:
A note to readers:
~/.kshrc
is forksh93
. Forksh88
, either put your aliases in~/.profile
, or use~/.kshrc
but add this to your~/.profile
:export ENV=$HOME/.kshrc