xonsh

Python-powered shell with cross-platform scripting and Unix integration.

brewmacoslinux
Try with needOr install directly
Source

About

Python-powered, cross-platform, Unix-gazing shell language and command prompt

Commands

xonsh

Examples

start an interactive shell with python syntax$ xonsh
run a python script as a shell command$ xonsh -c "print('hello'); import os; os.system('ls')"
execute a xonsh script file$ xonsh myscript.xsh
use python variables and functions in shell commands$ xonsh -c "files = ![ls -1]; print(f'Found {len(files)} files')"
mix shell commands with python in interactive mode$ xonsh