From 04cfa88b2702a818b3d109d3b947014a9b5474b4 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sat, 16 Oct 2021 19:07:00 +0200 Subject: [PATCH] bin: improve arg testing utilities --- .local/bin/scripts/arg-notify | 3 +++ .local/bin/scripts/arg-test | 4 ++-- README.org | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100755 .local/bin/scripts/arg-notify diff --git a/.local/bin/scripts/arg-notify b/.local/bin/scripts/arg-notify new file mode 100755 index 0000000..41868d5 --- /dev/null +++ b/.local/bin/scripts/arg-notify @@ -0,0 +1,3 @@ +#!/bin/sh +# To test args passed from some graphical program +notify-send "$(arg-test "$@")" diff --git a/.local/bin/scripts/arg-test b/.local/bin/scripts/arg-test index 4fe2ddc..8e1df09 100755 --- a/.local/bin/scripts/arg-test +++ b/.local/bin/scripts/arg-test @@ -1,4 +1,4 @@ #!/bin/sh echo "$# Args: $@" -echo "${@:-default}" | sed 's/\(\w\+\)/\1+sed/g' -echo "Last arg: ${@:$#}" +echo "${@:-default}" | sed 's/\(\w\+\)/\1-w/g' +#echo "Last arg: ${@:$#}" diff --git a/README.org b/README.org index 97d2515..030b59c 100644 --- a/README.org +++ b/README.org @@ -31,7 +31,7 @@ and configuration for ~less~ and ~fzf~. # Use org-yank-visible - essentials :: git zsh bat neovim man-db texinfo - basic tools :: fd ripgrep tree jrnl python-pynvim wget zsh-completions mlocate -- common tools :: ffmpeg imagemagick pandoc [[https://lftp.yar.ru/][lftp]] glances youtube-dl dos2unix zsh-doc pacman-contrib +- common tools :: topgrade ffmpeg imagemagick pandoc [[https://lftp.yar.ru/][lftp]] glances youtube-dl dos2unix zsh-doc pacman-contrib - pass :: pass pass-otp pass-extension-tail pass-clip -> interesting: pass-steam, pass-autotype, pass-file, pass-qr, pass-ssh, pass-rotate - ssh :: openssh sshfs lemonade-git