I use numerous aliases set at a given UNIX environment. For example my current fish shell under OSX have these below
gm
->git merge
dk
->docker kill
and so on.
Now the challenge is I use iTerm 2 for connecting to various remote sessions and I wish these aliases work seamlessly on all sessions.
Is there a way to push these aliases into a global context so that iTerm 2 will input the original command upon detecting these aliases.
i.e if I hit gm
+ enter
in any iTerm window it must issue git merge
to the remote session.
bash_profile
. I use iTerm 2 for connecting to various remote sessions - Do you mean you connect to various (meaning different) servers and/or accounts?bash_profile
on numerous servers and keeping them in sync.profile
on a server is so that aliases you create are there regardless of the terminal you attach with. If you want "sync" your profiles, look to rsync.