Files
indra/scripts/cdwork.sh
2023-06-20 10:01:06 +01:00

8 lines
237 B
Bash
Executable File

#!/usr/bin/zsh
# populate ~/.workpath thus: `cd path/to/repo/root; pwd>~/.workpath
export INDRAROOT=$(cat ~/.workpath)
export PATH=$INDRAROOT/scripts:$PATH
# put the path of the root of the repository in ./scripts/path
cd $INDRAROOT
zsh