安装:
python -m pip install 'xonsh[full]'
像 bash 一样输入命令:
$ cd /home
$ cat /etc/passwd | grep root
$ ls -la
像 python 一样输入命令:
$ 2 + 2
$ import json
j = json.loads('{"Hello": "world!", "Answer": 42}')
print(j['Answer'])
混合 bash 和 python 命令:
$ len($(curl -L
https://xon.sh))
$ for filename in `.*`:
print(filename)
du -sh @(filename)
更多见:
https://xon.sh/
--
修改:hgoldfish FROM 120.33.11.*
FROM 120.33.11.*