Coder Social home page Coder Social logo

zsh-window-title's Introduction

zsh-window-title GitHub release (latest by date)

A zsh plugin for informative terminal window titles

Requirements

  • Zsh

Installation

Homebrew

brew install olets/tap/zsh-window-title

With a shell plugin manager

  1. Install zsh-window-title with a zsh plugin manager. Each has their own way of doing things. See your package manager's documentation or the zsh plugin manager plugin installation procedures gist.

    After adding the plugin to the manager, restart zsh:

    exec zsh

Manual

  1. Download the latest zsh-window-title binary
  2. Either
    • Put the file zsh-window-title in a directory in your PATH and add source zsh-window-title to your ~/.zshrc file
    • Add source the/path/to/zsh-window-title to your ~/.zshrc file
  3. Restart zsh:
    exec zsh

Usage

Once zsh-window-title is installed, your terminal window title will be

  • <parent dir>/<current dir> when nothing's running
  • <parent dir>/<current dir> - <first word of last run command> when something's running

macOS Terminal.app users

By default macOS's Terminal app will control the window title. Disable that by:

Preferences > Profiles > Window > Title --> uncheck everything.

Oh-My-Zsh users

By default OMZ will control the terminal window title. Disable that by adding

DISABLE_AUTO_TITLE=”true”

to your ~/.zshrc file.

CLI

zwt restore-defaults
    (help | --help | -h)
    (version | --version | -v)
  • zwt restore-defaults Restore options to their defaults in the current session. See Options.
  • zwt (help | --help | -h) Show the manpage.
  • zwt (version | --version | -v) Print the command name and version.

Options

Variable Type Default Use
ZSH_WINDOW_TITLE_DEBUG integer 0 If non-zero, print hook debugging messages
ZSH_WINDOW_TITLE_DIRECTORY_DEPTH integer 2 How many directory levels to display
ZWT_DEBUG integer 0 If non-zero, print CLI debugging messages

Changelog

See the CHANGELOG file.

Roadmap

See the ROADMAP file.

Contributing

Thanks for your interest. Contributions are welcome!

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Check the Issues to see if your topic has been discussed before or if it is being worked on.

Please read CONTRIBUTING.md before opening a pull request.

License

zsh-window-title by Henry Bley-Vroman is licensed under CC BY-NC-SA 4.0 with a human rights condition from Hippocratic License 2.1. Persons interested in using or adapting this work for commercial purposes should contact the author.

Licensed under Creative CommonsLicensed with an attribution termLicensed with a non-commercial termLicensed with a share-alike term

For the full text of the license, see the LICENSE file.

zsh-window-title's People

Contributors

olets avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.