'Set up one time postgres remote server connection through terminal

I have remote postgres server link with all needed parameters.

Every day i have to connect to remote server by pasting this ->

psql -h <IP_Address> -p <port_no> -d <database_name> -U <DB_username> -W

Can I somehow avoid using this, like connection stays there the way it is in pgadmin



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source