fix(lint): added missing shfmt, linted files

This commit is contained in:
2023-08-31 09:55:00 +03:00
parent 6b76bc825c
commit 31e04ce865
6 changed files with 23 additions and 22 deletions

View File

@@ -34,4 +34,3 @@ git submodule add --name tmux/tmux-yank \
-f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank
git submodule add --name tmux/vim-tmux-navigator \
-f https://github.com/christoomey/vim-tmux-navigator.git config/tmux/plugins/vim-tmux-navigator

View File

@@ -184,8 +184,8 @@ function section_helpers
case "$1" in
path)
# shellcheck disable=2001
for i in $(echo "$PATH" | sed 's/:/ /g'); do echo "$i"; done;
;;
for i in $(echo "$PATH" | sed 's/:/ /g'); do echo "$i"; done
;;
*) menu_usage "$USAGE_PREFIX" "${MENU[@]}" ;;
esac
}

View File

@@ -4,4 +4,3 @@
# and anyone else who expects to see a 'python' executable
exec python3 "$@"

View File

@@ -31,26 +31,28 @@
# 2. Functions to minise code.
#{
# I.
notify () {
# I.
notify()
{
notify-call \
--replace-file "$replace_id" \
"$@"
notify-call \
--replace-file "$replace_id" \
"$@"
}
}
# II.
stop () {
# II.
stop()
{
# A.
#pkill -INT -f 'ffmpeg -f alsa -ac 1 -i pulse -f x11grab -r 30 -s '
giph --stop
# A.
#pkill -INT -f 'ffmpeg -f alsa -ac 1 -i pulse -f x11grab -r 30 -s '
giph --stop
# C.
eww update record_menu=false
# C.
eww update record_menu=false
}
}
#}
# #. Kill previous giph process.
@@ -76,7 +78,7 @@ fi
case "$1" in
# A. Supported.
'mkv' | 'gif' | 'webm' | 'mp4' ) ;;
'mkv' | 'gif' | 'webm' | 'mp4') ;;
# B. Not supported.
*)
@@ -93,7 +95,7 @@ fi
# II. Execute itself.
exec $0 $format $2
;;
;;
esac
@@ -170,7 +172,7 @@ fi
gtk-launch \
"$(xdg-mime query default inode/directory)" \
"$path_recordings/" \
>/dev/null 2>&1 &
> /dev/null 2>&1 &
fi

View File

@@ -7,6 +7,8 @@ source "$HOME/.dotfiles/scripts/shared.sh"
! have go && msg "go hasn't been installed yet." && exit 0
packages=(
# A shell parser, formatter, and interpreter with bash support; includes shfmt
mvdan.cc/sh/v3/cmd/shfmt@latest
# sysadmin/scripting utilities, distributed as a single binary
github.com/skx/sysbox@latest
# Git Profile allows you to switch between user profiles in git repos

View File

@@ -336,4 +336,3 @@ ask()
fi
done
}