"cd /data/openpilot" only for main tmux session (#99)

This commit is contained in:
Adeeb Shihadeh
2022-12-10 13:29:39 -08:00
committed by GitHub
parent d75c91eed1
commit 4ca023bc75
+3 -2
View File
@@ -4,5 +4,6 @@ export MYVIMRC="~/.vimrc"
source $HOME/.profile
# TODO: there's probably a better way to do this for only the main tmux session
[ -d "/data/openpilot" ] && cd /data/openpilot
if [ -d "/data/openpilot" ] && [ "$(tmux display-message -p '#{session_name}')" == "comma" ] ; then
cd /data/openpilot
fi