S
S
sudo rm -rf /2017-08-30 03:42:32
bash
sudo rm -rf /, 2017-08-30 03:42:32

Uxterm. How to make export work between 2 tabs?

I want to fasten ssh-agent. I use eval `ssh-agent -s`.
The problem is that it exportdoesn't work the way I would like it to.
If in the same tab after eval `ssh-agent -s`register set | grep SSH_, then the set variables are displayed.
I open a new window - there are no variables.
What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-08-30
@MaxLevs

if in a simple way - no way: export works within the current shell (and its descendants), and different tabs = different / independent shells.
as an option - write these variables to a file, which should be included in the profile/rc-file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question