brew install termtitle
If it is not accessable, try
brew install https://raw.githubusercontent.com/grimmer0125/homebrew-core/termtitle/Formula/termtitle.rb
Thare are several ways to install, and it depends on your Python environment and preference.
sudo pip install termtitle
pin install --user termtitle
.
But you need to add Python bin directories to PATH,
- test it first,
python2.7 -m site &> /dev/null && PATH="$PATH:`python2.7 -m site --user-base`/bin"
(ref: https://stackoverflow.com/a/48380776/7354486) termtitle random_title
- if you see your titles change, then you can permanently change your PATH,
echo 'export PATH="$PATH:`python2.7 -m site --user-base`/bin"' >>~/.bash_profile
pip3 install termtitle
.
pip install termtitle
.
If you are using zsh and this package does not take effect, you might need to set DISABLE_AUTO_TITLE="true" in ~/.zshrc and restart shell to try again.
termtitle demo_project_root
termtitle 這是秘密的鋼彈計劃
termtitle サイボーグ009のメンバー
termtitle ""
# reset the title to empty
local test:
- Install: python setup.py install
- Uninstall: pip uninstall termtitle
publish:
- change
version="x.y.z
insetup.py
python setup.py check --restructuredtext -s
do some check before publishingpython setup.py sdist
- Use twine to publish:
twine upload dist/*