mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
add shellcheck ignores
This commit is contained in:
parent
cacfc704f2
commit
f496ac0b6f
@ -10,12 +10,14 @@
|
|||||||
|
|
||||||
# sudo not required for some system commands
|
# sudo not required for some system commands
|
||||||
for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
|
for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
|
||||||
|
# shellcheck disable=SC2139
|
||||||
alias $command="sudo $command"
|
alias $command="sudo $command"
|
||||||
done; unset command
|
done; unset command
|
||||||
|
|
||||||
se() {
|
se() {
|
||||||
local -r bindir=~sc/
|
local -r bindir=~sc/
|
||||||
s=("${bindir}"**/*(.))
|
s=("${bindir}"**/*(.))
|
||||||
|
# shellcheck disable=SC2086
|
||||||
c="$(print -lnr ${s/$bindir/} | fzf)"
|
c="$(print -lnr ${s/$bindir/} | fzf)"
|
||||||
[[ "${c}" ]] && "${EDITOR}" "$bindir$c"
|
[[ "${c}" ]] && "${EDITOR}" "$bindir$c"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user