![]() ![]() I wanted a bash script to copy all my git repos into a temp zip when I start up my terminal and I also wanted a cool spinner to go with it and I'm not sure if my code is the most compact, but it definitely works well and is simple enough to read. ![]() There are some fancy spinners and I bet every answer is spot on, especially Schaller's, but personally as a developer I like being able to read the code and know exactly what's going on. Local pid=$1 # Process Id of the previous running command Before the following measures, the Mac was devastatingly slow and taking an age to open apps like Word, Excel, Outlook, Photoshop, Illustrator and then being taken over by the spinning beach ball leading to force quits and loss of work. # (that way it works for any locale as long as the font supports the characters) Here's how we completely fixed a rainbow spinning wheel of death inflicted Mac Mini (late 2012, Server) running Mojave Mac OS. # make sure we use non-unicode character type locale # command to run (with any parameters) while showing a spinner. # Shows a spinner while another command is running. Here's another fancy spinner which you can use like this: spinner ping
0 Comments
Leave a Reply. |