Snipt is a command line tool that helps you to create and save snippets of code for later use. In this tutorial, we'll show you how to install Snipt on macOS.
Before you install Snipt on macOS, you need to make sure that you have the following tools installed:
If you don't have Homebrew and Git installed, you can install them by running the following command in your terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install git
To install Snipt on macOS, follow the steps below:
git clone https://github.com/nicksergeant/snipt.git
cd snipt
make install
Once Snipt is installed on your macOS, you can start using it by running the following command:
snipt
This will show you the help menu with all the available options and commands.
You can add a new snippet by running the following command:
snipt add [snippet-name]
This will open your default text editor where you can enter the code for the snippet.
To retrieve a snippet, run the following command:
snipt get [snippet-name]
This will retrieve the code for the specified snippet and copy it to your clipboard.
Snipt is a useful command line tool for managing your code snippets. With this tutorial, you should be able to install and use Snipt on your macOS.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!