I am trying to create Python script jump.py
that allows me to jump to a set of predefined dirs, and looks like it is not possible to do this, because after scripts exits, the previous directory is restored:
import os
print(os.getcwd())
os.chdir('..')
print(os.getcwd())
[micro]$ python jump.py
/home/iset/go/src/github.com/zyedidia/micro
/home/iset/go/src/github.com/zyedidia
[micro]$
Is that at all possible to land to [zyedidia]
dir after the script finishes?