jacek-kurlit / pik

Process Interactive Kill
https://crates.io/crates/pik
MIT License
186 stars 6 forks source link
rust terminal tui

Pik Pik

[![Build status](https://github.com/jacek-kurlit/pik/actions/workflows/on_merge.yml/badge.svg)](https://github.com/jacek-kurlit/pik/actions) [![GitHub Release](https://img.shields.io/github/v/release/jacek-kurlit/pik)](https://github.com/jacek-kurlit/pik/releases/latest)

Process Interactive Kill is a command line tool that helps to find and kill process. It works like pkill command but search is interactive.

This tool is still under development

Table of Contents

Features

Pik allows to fuzzy search processes by:

After selecting process you can kill it with Ctrl + X

Installation

Archives of precompiled binaries for pik are available for Linux and macOS.

On Arch Linux

pacman -S pik

On Fedora

sudo dnf copr enable rusty-jack/pik
sudo dnf install pik

On Tumbleweed

sudo zypper install pik

With dra

dra download --install jacek-kurlit/pik

If you're a Rust programmer, pik can be installed with cargo.

cargo install pik

Alternatively, one can use cargo binstall to install a pik binary directly from GitHub:

cargo binstall pik

Configuration

Application configuration

You may set your preferences in pik.toml file located in ~/.config/pik directory. All options are optional, if skipped default values will be used. Example configuration with default settings can be found at example config

Key maps

Key(s) Action
Esc | Ctrl + C Quit
Ctrl + X Kill process
Ctrl + R Refresh processes list
Ctrl + F Details forward
Ctrl + B Details backward
Tab | Shift + Tab Select next/previous
Arrow Down | Arrow Up Select next/previous
Ctrl + J | Ctrl + K Select next/previous
Ctrl + Arrow Down | Ctrl + Arrow Up Select last/first

Caveats

Development

Supported Systems

In theory pik is using coross compliant lib that allows to run it on all major platforms. In pratice I'm using linux and development is performed based on this OS. Pik will probably work on MacOs and Windows but that must be tested by community since I don't own computers with these OS'es. If you are able to test it on windows or macos please create issue to let me know.

Setup

Building

git clone https://github.com/jacek-kurlit/pik
cd pik
cargo build --release
./target/release/pik --version