My workflow always consists of opening a new terminal window, typing ssh [email protected] (or scp) followed by cd remote/directory/of/project
The domain is long and hard to type, as well as it being a big file path so this takes me ~20 seconds every time. What's the canonical, efficient way to do this that you would see a senior dev doing?
For not retyping
ssh [email protected]that often, you can put it in you.ssh/config:Afterwards, you can just type ssh
my_alias.For not retyping the path, you can
.bashrc(alias cd_my_proj='cd remote/directory/of/project')ln -s remote/directory/of/project ~)You may also google these pointers for more details (like how to save tmux session and further details in your .ssh/config)