Skip to main content

Bookmarks for your terminal

Project description

term-mark • bookmarks for your terminal 📚

Bookmark directories to quickly jump to them later

Jump to path

Install

pip install term-mark

Because python cannot directly write to a terminals input buffer (stdin) and any directory changes to the terminal will revert after the program terminates, to make term-mark work you need to wrap the program execution in a shell function that runs term-mark which can facilitate directory navigation.

term-mark handles the setup for you, but before you can use tm you need to run:

term-mark --init

This creates a shell function tm.zsh in $HOME/.config/zsh/zsh_functions and sources it your .zshrc file.

One last thing: you'll likely need to reload your .zshrc file

source $HOME/.zshrc

You can now use term-mark with tm!

Uninstall

pip uninstall term-mark

Delete the shell function:

rm $HOME/.config/zsh/zsh_functions/tm.zsh

If you don't have anything else in this directory you can also delete the entire directory:

rm -r $HOME/.config/zsh/

Remove the following line from your .zshrc file:

source "$HOME/.config/zsh/zsh_functions/tm.zsh"

Attribution

This CLI tool includes code and components from the InquirerPy package created by kazhala, specifically a fork from Gracer

InquirerPy is a powerful Python library for creating interactive command-line interfaces.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

term-mark-0.1.3.tar.gz (35.6 kB view hashes)

Uploaded Source

Built Distribution

term_mark-0.1.3-py3-none-any.whl (51.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page