#!/usr/bin/env bash # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2020-07-18 19:43:00 +0100 (Sat, 18 Jul 2020) # # https://github.com/harisekhon/bash-tools # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish # # https://www.linkedin.com/in/harisekhon # # exports SPOTIFY_ACCESS_TOKEN so all the user private data spotify tools (../spotify_*.sh) can use it easily without re-prompting ia browser spotifysession(){ # this would prevent it from being exported to the shell as we want to make it easier to use full spotify tools #local SPOTIFY_ACCESS_TOKEN # defined in ../.bashrc # shellcheck disable=SC2154 SPOTIFY_ACCESS_TOKEN="$(SPOTIFY_PRIVATE=1 "$bash_tools/spotify_api_token.sh")" export SPOTIFY_ACCESS_TOKEN }