Clipboard-centric command executor
yx X|Y [STR...] # exec|yank args (case insensitive)
[CMD...] | yx x|y # exec|yank pipe# basic usage
yx y hi → hi
echo hi | yx y → hi
# with args
yx X date → Sun Feb 25 00:00:00 AM +00 2024
date | yx Y now: → Sun Feb 25 00:00:00 AM +00 2024 now:
# command outputecho ls | yx x → file1 file2 file3
echo date | yx X +%s → 1708796381# requires xsel
git clone https://github.com/metaory/yx.git &&cd yx && chmod +x yx && ln -sfv $PWD/yx ~/.local/bin/alias -g YY='| yx y'# pipe→yankalias -g YX='| yx x'# pipe→execalias yy='yx y'# args→yankalias yx='yx x'# args→execYX_SILENT=1 suppress output