Revert "Change shebang to /bin/bash"
This reverts commit 94d60a376718ffe005ed5880c07b407edfb94e2b.
This commit is contained in:
parent
94d60a3767
commit
b1b77f2574
@ -1,8 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Trim an audio file given a startpoint and an endpoint
|
# Trim an audio file given a startpoint and an endpoint
|
||||||
|
|
||||||
set -o nounset
|
|
||||||
|
|
||||||
printHelp() {
|
printHelp() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Usage: audiotrim [input file] [start time] [stop time] [output file]
|
Usage: audiotrim [input file] [start time] [stop time] [output file]
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
# - fd
|
# - fd
|
||||||
# - fzf
|
# - fzf
|
||||||
|
|
||||||
set -o nounset
|
|
||||||
|
|
||||||
printHelp() {
|
printHelp() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Usage: cptemplate [-h,--help] [options] [filename]
|
Usage: cptemplate [-h,--help] [options] [filename]
|
||||||
|
2
ef.sh
2
ef.sh
@ -5,8 +5,6 @@
|
|||||||
# - fzf
|
# - fzf
|
||||||
# - mlocate
|
# - mlocate
|
||||||
|
|
||||||
set -o nounset
|
|
||||||
|
|
||||||
printHelp() {
|
printHelp() {
|
||||||
cat << done
|
cat << done
|
||||||
Usage: ef [-h|--help] [-E|--editor editor] [patterns]
|
Usage: ef [-h|--help] [-E|--editor editor] [patterns]
|
||||||
|
9
fedit.sh
9
fedit.sh
@ -13,7 +13,6 @@ Options:
|
|||||||
-e, --etc edit a file in /etc
|
-e, --etc edit a file in /etc
|
||||||
-E, --editor use a given editor (default: ${EDITOR:-none})
|
-E, --editor use a given editor (default: ${EDITOR:-none})
|
||||||
-h, --help print this help page
|
-h, --help print this help page
|
||||||
-l, --locate use locate to search for files
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,7 +23,6 @@ readonly noeditor_error="Error, no editor entered"
|
|||||||
# Pre-run correctness checks
|
# Pre-run correctness checks
|
||||||
unset fd_opts
|
unset fd_opts
|
||||||
file=
|
file=
|
||||||
find_cmd='fd'
|
|
||||||
dir=
|
dir=
|
||||||
editor=
|
editor=
|
||||||
|
|
||||||
@ -92,11 +90,6 @@ while true; do
|
|||||||
printHelp
|
printHelp
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
'-l'|'--locate')
|
|
||||||
find_cmd='locate --all --ignore-case --null'
|
|
||||||
shift
|
|
||||||
continue
|
|
||||||
;;
|
|
||||||
--)
|
--)
|
||||||
shift
|
shift
|
||||||
break
|
break
|
||||||
@ -120,7 +113,7 @@ if [[ "${dir}" ]]; then
|
|||||||
fd_opts+=('.' '--' "${dir}")
|
fd_opts+=('.' '--' "${dir}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
file="$("${find_cmd}" "${fd_opts[@]}" | fzf --read0 --select-1 --exit-0)"
|
file="$(fd "${fd_opts[@]}" | fzf --read0 --select-1 --exit-0)"
|
||||||
|
|
||||||
[[ ! "${file}" ]] && exit 1
|
[[ ! "${file}" ]] && exit 1
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
# Dependencies:
|
# Dependencies:
|
||||||
# fd
|
# fd
|
||||||
|
|
||||||
set -o nounset
|
|
||||||
|
|
||||||
printHelp() {
|
printHelp() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Fuzzy find and delete files matching patterns
|
Fuzzy find and delete files matching patterns
|
||||||
@ -22,6 +20,7 @@ EOF
|
|||||||
# Pre-run correctness checks
|
# Pre-run correctness checks
|
||||||
unset files
|
unset files
|
||||||
unset fd_opts
|
unset fd_opts
|
||||||
|
ans=
|
||||||
|
|
||||||
declare -a files
|
declare -a files
|
||||||
declare -a fd_opts
|
declare -a fd_opts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user