K
K
kapac_er2018-10-16 09:00:50
linux
kapac_er, 2018-10-16 09:00:50

How to implement synchronization of paths of 2 terminals?

Often you have to launch 2 terminals with 1 and the same path, it takes time in each to reach the desired path (small but still), you want to either launch a new terminal with the same path, or ideally, the second terminal should go there when updating the path of the first one.
Sitting on i3 ready for experiments

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-10-17
@saboteur_kiev

1. Specify the task itself, since in practice it is usually not required to synchronize two terminals. Give a practical example of use.
2. As a simple bike, you can write two aliases, like:

alias savecd="echo cd $(pwd)>$HOME/bin/cdsync.sh"
alias loadcd=$HOME/bin/cdsync.sh

Savecd in one terminal, loadcd in another. But again, it seems to me that your problem has a fundamentally different solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question