komi
is a simple command saver with the ability to group commands in categories so they can be retrieved easily. Commands and their uses can be added, modified and deleted. They can quickly be copied to the system clipboard. All the data is saved in a JSON file which can be exported.
Features:
- Bash completion for categories
- Command copying to system clipboard
- Searching for string (includes case-insensitive search)
- Exporting data file
If you're on Linux, you would need the xclip
package for copying commands. On Debian/Ubuntu you can install it with:
sudo apt-get install xclip
Also note, if you're using komi copy
command via ssh on a remote linux machine, you would need to enable X11 forwarding. You can do by adding the -X
flag:
ssh <user>@<ip> -X
The default data directory is kept as:
/home/$USER/.komi
If you want a different data directory, you can export KOMI_DATA_DIR
env variable to that directory.
export KOMI_DATA_DIR="/home/$USER/diff_komi"
Note: If specifying data dir through env var, make sure to include the export statement in your .bashrc
.
go get github.com/shivammg/komi
sudo cp data/bash_autocomplete /etc/bash_completion.d/komi
source /etc/bash_completion.d/komi
# If you want to see the example data file (Optional)
mkdir /home/$USER/.komi
cp data/komi.json /home/$USER/.komi/komi.json
git clone [email protected]:shivamMg/komi.git
cd komi
./install.sh
source /etc/bash_completion.d/komi
install.sh
does the following:
-
Copies one of the following binaries to
/usr/local/bin
according to the platform. Binaries for other platforms are not included.Note: This requires sudo permissions.
-
Creates data directory at
/home/$USER/.komi
and copies example data file fromdata/komi.json
. -
Copies the bash completion script to
/etc/bash_completion.d/
. Note: This also requires sudo permissions.
You can then source your komi bash completion script to update your current shell.
source /etc/bash_completion.d/komi