Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Emacs style kill-ring implementation of zsh that does not depend on external commands

License

Notifications You must be signed in to change notification settings

Kyure-A/zsh-universal-kill-ring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsh-universal-kill-ring

Dependency

Motivation

Some environments do not have pbcopy or xsel (default Ubuntu does). We have created a command to use arboard as a means of using the clipboard without relying on these.

Usage

It can be installed with any zsh plugin manager, or cloned and loaded with source. afterwards, add the following code to your .zshrc.

bindkey '^k' copy-line-as-kill
bindkey '^y' paste-as-yank
bindkey '^[y' paste-as-yank-pop # History fuzzy search is implemented, but does not work well as yank

paste-as-yank-pop

yank-pop fuzzzy searching

Enjoy an Emacs-like kill-ring experience! (The first time you install this, this is slow because of compile, but after that this is stress-free and fast).

Environment variable

$UNIKRHIST

This environment variable specifies the file that stores the kill-ring history (UNIversal Kill-Ring HISTory).

Todo

  • Copy
  • Paste
    • Search and paste from history (incomplete)
  • History

About

Emacs style kill-ring implementation of zsh that does not depend on external commands

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published