bin: improve arg testing utilities

This commit is contained in:
xeruf 2021-10-16 19:07:00 +02:00
parent b72961ba4e
commit 04cfa88b27
3 changed files with 6 additions and 3 deletions

3
.local/bin/scripts/arg-notify Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# To test args passed from some graphical program
notify-send "$(arg-test "$@")"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
echo "$# Args: $@" echo "$# Args: $@"
echo "${@:-default}" | sed 's/\(\w\+\)/\1+sed/g' echo "${@:-default}" | sed 's/\(\w\+\)/\1-w/g'
echo "Last arg: ${@:$#}" #echo "Last arg: ${@:$#}"

View File

@ -31,7 +31,7 @@ and configuration for ~less~ and ~fzf~.
# Use org-yank-visible # Use org-yank-visible
- essentials :: git zsh bat neovim man-db texinfo - essentials :: git zsh bat neovim man-db texinfo
- basic tools :: fd ripgrep tree jrnl python-pynvim wget zsh-completions mlocate - 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 - pass :: pass pass-otp pass-extension-tail pass-clip
-> interesting: pass-steam, pass-autotype, pass-file, pass-qr, pass-ssh, pass-rotate -> interesting: pass-steam, pass-autotype, pass-file, pass-qr, pass-ssh, pass-rotate
- ssh :: openssh sshfs lemonade-git - ssh :: openssh sshfs lemonade-git