Skip to content

Commit ce9c455

Browse files
committed
Add `pythonic-remote-docker-p' helper function.
1 parent ef57d2b commit ce9c455

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pythonic.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
(tramp-tramp-file-p pythonic-environment)
4747
(tramp-tramp-file-p python-shell-interpreter)))
4848

49+
(defun pythonic-remote-docker-p ()
50+
"Determine docker remote virtual environment."
51+
(and (pythonic-remote-p)
52+
(s-starts-with-p "/docker:" (pythonic-tramp-connection))))
53+
4954
(defun pythonic-file-name (file)
5055
"Normalized FILE location with out tramp prefix."
5156
(if (tramp-tramp-file-p file)

0 commit comments

Comments
 (0)