Also launch bash/zsh/fish scripts in their respective shells
This commit is contained in:
parent
6c139600a0
commit
5bfed4fe2f
@ -2217,8 +2217,11 @@ class Boss:
|
|||||||
else:
|
else:
|
||||||
from .guess_mime_type import guess_type
|
from .guess_mime_type import guess_type
|
||||||
mt = guess_type(path) or ''
|
mt = guess_type(path) or ''
|
||||||
if os.path.splitext(path)[1].lower() in ('.sh', '.command'):
|
ext = os.path.splitext(path)[1].lower()
|
||||||
|
if ext in ('.sh', '.command', '.tool'):
|
||||||
launch_cmd += [shell_path, path]
|
launch_cmd += [shell_path, path]
|
||||||
|
elif ext in ('.zsh', '.bash', '.fish'):
|
||||||
|
launch_cmd += [ext[1:], path]
|
||||||
elif mt.startswith('text/'):
|
elif mt.startswith('text/'):
|
||||||
launch_cmd += get_editor() + [path]
|
launch_cmd += get_editor() + [path]
|
||||||
elif mt.startswith('image/'):
|
elif mt.startswith('image/'):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user