mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-19 21:55:10 +00:00
fix(lint): added missing shfmt, linted files
This commit is contained in:
@@ -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
|
-f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank
|
||||||
git submodule add --name tmux/vim-tmux-navigator \
|
git submodule add --name tmux/vim-tmux-navigator \
|
||||||
-f https://github.com/christoomey/vim-tmux-navigator.git config/tmux/plugins/vim-tmux-navigator
|
-f https://github.com/christoomey/vim-tmux-navigator.git config/tmux/plugins/vim-tmux-navigator
|
||||||
|
|
||||||
|
|||||||
@@ -184,8 +184,8 @@ function section_helpers
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
path)
|
path)
|
||||||
# shellcheck disable=2001
|
# 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[@]}" ;;
|
*) menu_usage "$USAGE_PREFIX" "${MENU[@]}" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,4 +4,3 @@
|
|||||||
# and anyone else who expects to see a 'python' executable
|
# and anyone else who expects to see a 'python' executable
|
||||||
|
|
||||||
exec python3 "$@"
|
exec python3 "$@"
|
||||||
|
|
||||||
|
|||||||
@@ -31,26 +31,28 @@
|
|||||||
# 2. Functions to minise code.
|
# 2. Functions to minise code.
|
||||||
#{
|
#{
|
||||||
|
|
||||||
# I.
|
# I.
|
||||||
notify () {
|
notify()
|
||||||
|
{
|
||||||
|
|
||||||
notify-call \
|
notify-call \
|
||||||
--replace-file "$replace_id" \
|
--replace-file "$replace_id" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# II.
|
# II.
|
||||||
stop () {
|
stop()
|
||||||
|
{
|
||||||
|
|
||||||
# A.
|
# A.
|
||||||
#pkill -INT -f 'ffmpeg -f alsa -ac 1 -i pulse -f x11grab -r 30 -s '
|
#pkill -INT -f 'ffmpeg -f alsa -ac 1 -i pulse -f x11grab -r 30 -s '
|
||||||
giph --stop
|
giph --stop
|
||||||
|
|
||||||
# C.
|
# C.
|
||||||
eww update record_menu=false
|
eww update record_menu=false
|
||||||
|
|
||||||
}
|
}
|
||||||
#}
|
#}
|
||||||
|
|
||||||
# #. Kill previous giph process.
|
# #. Kill previous giph process.
|
||||||
@@ -76,7 +78,7 @@ fi
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
|
|
||||||
# A. Supported.
|
# A. Supported.
|
||||||
'mkv' | 'gif' | 'webm' | 'mp4' ) ;;
|
'mkv' | 'gif' | 'webm' | 'mp4') ;;
|
||||||
|
|
||||||
# B. Not supported.
|
# B. Not supported.
|
||||||
*)
|
*)
|
||||||
@@ -93,7 +95,7 @@ fi
|
|||||||
# II. Execute itself.
|
# II. Execute itself.
|
||||||
exec $0 $format $2
|
exec $0 $format $2
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -170,7 +172,7 @@ fi
|
|||||||
gtk-launch \
|
gtk-launch \
|
||||||
"$(xdg-mime query default inode/directory)" \
|
"$(xdg-mime query default inode/directory)" \
|
||||||
"$path_recordings/" \
|
"$path_recordings/" \
|
||||||
>/dev/null 2>&1 &
|
> /dev/null 2>&1 &
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ source "$HOME/.dotfiles/scripts/shared.sh"
|
|||||||
! have go && msg "go hasn't been installed yet." && exit 0
|
! have go && msg "go hasn't been installed yet." && exit 0
|
||||||
|
|
||||||
packages=(
|
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
|
# sysadmin/scripting utilities, distributed as a single binary
|
||||||
github.com/skx/sysbox@latest
|
github.com/skx/sysbox@latest
|
||||||
# Git Profile allows you to switch between user profiles in git repos
|
# Git Profile allows you to switch between user profiles in git repos
|
||||||
|
|||||||
@@ -336,4 +336,3 @@ ask()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user