refactor(posix): remove function prefixes from all shell files

This commit is contained in:
brij
2022-08-18 10:28:38 +05:30
committed by AJ ONeal
parent 82af8b46a4
commit fdeefd7e75
132 changed files with 169 additions and 169 deletions

View File

@@ -28,7 +28,7 @@ pkg_src="$pkg_src_cmd"
# pkg_install must be defined by every package
function _macos_post_install() {
_macos_post_install() {
if ! [ -e "$HOME/.local/bin/fish" ]; then
return 0
fi
@@ -66,12 +66,12 @@ function _macos_post_install() {
# always try to reset the default shells
_macos_post_install
function pkg_install() {
pkg_install() {
mv fish.app/Contents/Resources/base/usr/local "$HOME/.local/opt/fish-v${WEBI_VERSION}"
}
function pkg_post_install() {
pkg_post_install() {
# don't skip what webi would do automatically
webi_post_install
@@ -80,7 +80,7 @@ function pkg_post_install() {
}
# pkg_get_current_version is recommended, but (soon) not required
function pkg_get_current_version() {
pkg_get_current_version() {
# 'fish --version' has output in this format:
# fish, version 3.1.2
# This trims it down to just the version number: