This is a tutorial about writing a shell in python. Set xsh as your login shell add the program path ~/workspace/xsh/main.py into file /etc/shells, then type command chsh to configure.