feat: add bulk
script
This commit is contained in:
parent
fd71978fc5
commit
180a969ef7
@ -14,7 +14,7 @@
|
||||
- bat_notify : send a notification when battery runs low
|
||||
- bibinput : add a **.bib** entry through `dmenu`
|
||||
- bibshow : retrieve a **.bib** reference and copy to `xclip`
|
||||
- brightup : raise the keyboard brightness
|
||||
- bulk : execute batch commands through your favorite $EDITOR
|
||||
- colorblocks : show the system colors through colored squares
|
||||
- compiler : compile a file / runs a script if the filetype is supported
|
||||
- displayselect : handle a multimonitor setup
|
||||
|
15
.local/bin/bulk
Executable file
15
.local/bin/bulk
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
######################################################################
|
||||
# @author : swytch (swytch@$HOSTNAME)
|
||||
# @file : bulk
|
||||
# @license : MIT
|
||||
# @created : Wednesday Feb 10, 2021 00:27:55 CET
|
||||
#
|
||||
# @description : execute batch commands through your favorite $EDITOR
|
||||
######################################################################
|
||||
|
||||
|
||||
[ $1 = "" ] && 1="mv -i"
|
||||
[ $1 = "sox" ] && flags="-C 320"
|
||||
\ls | $EDITOR - -c ":%s/.*/$1 \"&\" $flags \"&\"/g"
|
Reference in New Issue
Block a user