Update tiny-care-terminal config so it knows where to find repos and handles lack of API keys correctly

This commit is contained in:
Danielle McLean 2020-07-27 15:31:37 +10:00
parent be45d2516a
commit 1013c9de02
Signed by: 00dani
GPG key ID: 9DDE1EDE01E3A605

View file

@ -1,7 +1,7 @@
#! zsh #! zsh
export TTC_WEATHER='Newcastle, NSW' export TTC_WEATHER='Sydney, NSW'
export -UT TTC_REPOS ttc_repos , export -UT TTC_REPOS ttc_repos ,
ttc_repos=(~/PhpstormProjects) ttc_repos=(~/projects)
if [[ -r $XDG_DATA_HOME/twitter/api.zsh ]]; then if [[ -r $XDG_DATA_HOME/twitter/api.zsh ]]; then
source $XDG_DATA_HOME/twitter/api.zsh source $XDG_DATA_HOME/twitter/api.zsh
@ -9,4 +9,6 @@ if [[ -r $XDG_DATA_HOME/twitter/api.zsh ]]; then
export TTC_CONSUMER_SECRET=$twitter[consumer_secret] export TTC_CONSUMER_SECRET=$twitter[consumer_secret]
export TTC_ACCESS_TOKEN=$twitter[access_token] export TTC_ACCESS_TOKEN=$twitter[access_token]
export TTC_ACCESS_TOKEN_SECRET=$twitter[access_secret] export TTC_ACCESS_TOKEN_SECRET=$twitter[access_secret]
else
export TTC_APIKEYS=false
fi fi