|
|
@ -6,7 +6,7 @@ source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
|
|
|
|
|
|
|
|
|
|
|
main () (
|
|
|
|
main () (
|
|
|
|
APP=nushell
|
|
|
|
APP=nushell
|
|
|
|
VERSION=${VERSION:-0.100.0}
|
|
|
|
VERSION=${VERSION:-0.101.0}
|
|
|
|
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
|
|
|
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
|
|
|
URL=https://github.com/nushell/nushell/releases/download/${VERSION}/nu-${VERSION}-$(uname -m)-$(get_os).tar.gz
|
|
|
|
URL=https://github.com/nushell/nushell/releases/download/${VERSION}/nu-${VERSION}-$(uname -m)-$(get_os).tar.gz
|
|
|
|
PLUGIN_DIR=${XDG_CONFIG_HOME}/nushell/plugins
|
|
|
|
PLUGIN_DIR=${XDG_CONFIG_HOME}/nushell/plugins
|
|
|
@ -16,7 +16,7 @@ main () (
|
|
|
|
set_link "${XDG_BIN_HOME}/nu" "${DEST}" nu
|
|
|
|
set_link "${XDG_BIN_HOME}/nu" "${DEST}" nu
|
|
|
|
|
|
|
|
|
|
|
|
mkdir_if_missing "${PLUGIN_DIR}"
|
|
|
|
mkdir_if_missing "${PLUGIN_DIR}"
|
|
|
|
find "${DEST}" -type f -executable -exec basename {} \; | grep plugin | while read -r plugin ; do
|
|
|
|
find "${DEST}" -type f -perm +111 -exec basename {} \; | grep plugin | while read -r plugin ; do
|
|
|
|
set_link "${PLUGIN_DIR}/${plugin}" "${DEST}" "${plugin}"
|
|
|
|
set_link "${PLUGIN_DIR}/${plugin}" "${DEST}" "${plugin}"
|
|
|
|
done
|
|
|
|
done
|
|
|
|
)
|
|
|
|
)
|
|
|
|