It's like screen's stuff command, without screen
Shell stuff will stuff commands into a shell à la
tmux send-keys or
If your environment is configured to use Python 3 by default:
$ pip install shtuff
$ pip3 install shtuff
shtuff only works on Python 3.7+!
In shell A, run:
$ shtuff as shell-a
In shell B, run:
$ shtuff into shell-a "git status"
Observe how shell A ran
An example use case for
shtuff new might be a setup script to open a couple
shells automatically. Consider this script:
#!/usr/bin/env bash termite -e "shtuff new vim" & termite -e "shtuff new 'tail -f /var/log/somelog.log'" &
This script will open two terminals, one running vim, and one running tail.
Install your local copy:
$ pip3 install -e .
Unless you know what you are doing, we highly recommend running tests inside a virtual environment. Here is how you can create and activate a virtual environment:
$ python3 -m venv .venv $ source .venv/bin/activate
You can leave the virtual environment via
$ make test
We release using Makefile, choose the relevant target:
$ make release-major $ make release-minor $ make release-patch
and wait for Travis to deploy to PyPi!
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size shtuff-0.3.1.tar.gz (8.7 kB)||File type Source||Python version None||Upload date||Hashes View|