question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’ve done a little shell script to put in my terminal’s initial source file (.zshrc in my case):

# Tiny care terminal
export TTC_SAY_BOX="ironman"
export TTC_WEATHER="Várzea Grande, Brazil"
export TTC_GITBOT="gitlog"

function work() {
  answer="Y"

  if [[ -z "$1" || ("$1" != "-y" && "$1" != "-Y") ]]; then
    echo -n "Wanna start work? (Y/n) "
    read answer
  fi

  if [[ -z "$answer" || "$answer" = "Y" || "$answer" = "y" ]]; then
    echo -n "Tell me some local git repos (separated by comma): "
    read repos

    ttc_repos=""
    ifsbak=$IFS
    IFS=","
    for repo in `echo "$repos"`; do
      if [[ "$ttc_repos" != "" ]]; then
        ttc_repos="$ttc_repos,"
      fi
      ttc_repos="$ttc_repos$HOME/Projects/$repo"
    done
    IFS=$ifsbak

    TTC_REPOS="$ttc_repos" tiny-care-terminal
  else
    echo "Ok, if you need me, just enter 'work'. See ya..."
  fi
}

work

If it isn’t helpful, please just close this issue. Regards 😃

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Garbeecommented, Jun 8, 2017

I think the script should be converted to node and store the vars in a way that can also be opened on Windows. That way we get cross-platform support.

0reactions
ghostcommented, May 23, 2018

ATM, I can’t even set up tiny-care-terminal on my machine. So, it’s gonna take a bit 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

StartUp Helper || Let Us Help You To Grow - StartUp Helper
Helper. Helper. Everybody needs a little help. In business sector it is even more so. We, with our expertise and experience, try to...
Read more >
Startup Helper download | SourceForge.net
Startup Helper lets users choose which programs are launched when the OS boots up. It also allows for waiting periods between launching ...
Read more >
Startuphelper pop-up every 30 seconds - Apple Community
A forum where Apple customers help each other with their products. Learn more. Sign up with your Apple ID to get started. Apple...
Read more >
Download Startup Helper 0.1.0.0 - Windows - Softpedia
Download Startup Helper - Add new items to Windows startup with the possibility to include program parameters, as well as a custom run...
Read more >
Google for Startups
Google for Startups connects founders with the right people, Google products, and best practices to help startups grow.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found