Git Product home page Git Product logo

mac-cli's Introduction

Mac CLI

 macOS command line tools for developers


Sponsors

Sponsor logo

Mac CLI is sponsored by 📒 SuperPlanner, an innovative daily planner and task manager for iPhone, iPad and Mac.

SuperPlanner combines the calendar with task management features to keep everything organized in one place.

There is no login or user registration required. All data is stored locally and syncs between your devices using private and secure iCloud sync.

Sponsor download badge


Introduction

Mac CLI is the ultimate tool for developers to manage their Mac. It provides a huge set of command line commands that automate the usage of your macOS system. When you run a function, the executed command is displayed and that helps you memorize each of the Utilities for future usage.

The tool is designed to be easily extendable with additional commands through the use of plugins. To view the currently available commands, you can navigate to the plugins folder and explore the different categories: /mac-cli/plugins

Contributions to add new plugins and keep improving the existing ones are welcome and very much appreciated!

image


Installation in 1 Simple Step - Including Configuration Wizard!

Via curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)"

Via wget

sh -c "$(wget https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install -O -)"

Then, re-open your terminal client. You will be able to run all the commands listed below, for example:

mac help


Configuration

The configuration is done when you install Mac CLI for the first time though the installer configuration wizard. After that, you can update your Mac CLI configuration by editing the following file: /usr/local/bin/mac


Requirements

These are the requirements to be able to run all the commands (the dependencies/requirements are installed when you install Mac CLI for the first time):

  • Homebrew
  • Git
  • Pipe Viewer (pv)

Update

You can update Mac CLI to the latest version by running:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/update)"


Uninstallation

You can uninstall Mac CLI by running:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/uninstall)"


Help / Commands List

Command Description Arguments
mac help List all available commands in mac script

General Commands

Command Description Arguments
mac update Install macOS software updates, update installed Ruby gems, Homebrew, npm and their installed packages
mac lock Lock
mac restart Restart macOS
mac sleep Sleep mode
mac shutdown Shutdown
mac time Show clock at top right position in Terminal/iTerm
mac screensaver Start screensaver
mac folders:list List folders in current directory with their current size
mac folder:size Calculate current folder size
mac bluetooth:status Get the bluetooth status
mac bluetooth:enable Enable bluetooth
mac bluetooth:disable Disable bluetooth
mac wifi:status Get the wifi status
mac wifi:scan Scan available wifi networks
mac wifi:enable Enable wifi
mac wifi:disable Disable wifi
mac dock:add-space N Add blank space to dock N = number of spaces
mac eject-all Eject all mounted volumes and disks
mac battery Get battery status
mac info Get macOS version information
mac hidden:show Show hidden files
mac hidden:hide Hide hidden files
mac find:text X Find exact phrase recursively inside directory X = Text string
mac find:biggest-files Find biggest files inside directory
mac find:biggest-directories Find biggest directories inside directory
mac zip:extract X Extract Zip file to current folder X = Zip file to extract
mac gzip:compress X Compress current file using Gzip X = File to compress
mac gzip:extract X Extract Gzip file to current folder X = Gzip file to extract
mac tar:compress X Compress X file/directory using tar with progress indicator X = File or directory
mac tar:extract X Extract tar file to current folder X = Tar file to extract

Search Utilities

Command Description Arguments
mac find:recent N Find files modified in the last N minutes N = number of minutes
mac search:replace X Search and replace string in file X = File to perform the search and replace operation

Network Utilities

Command Description
mac speedtest Internet connection speed test
mac ports List of used ports
mac ip:local Get local IP address
mac ip:public Get public IP address

DNS Utilities

Command Description
mac dns:list List DNS server(s)
mac dns:add Add DNS server
mac dns:remove Remove DNS server
mac dns:flush Flush DNS cache

SSH Utilities

Command Description Arguments
mac ssh:download-file X Download file from remote server through SSH X = Path of the remote file to download
mac ssh:download-folder X Download entire folder from remote server through SSH X = Path of the remote folder to download
mac ssh:sync:local X Sync local folder with remote folder using rsync through SSH (download remote folder to local folder) X = Path of the remote folder to sync to local folder
mac ssh:sync:remote X Sync remote folder with local folder using rsync through SSH (upload local folder to remote folder) X = Path of the remote folder to sync from local folder
mac ssh:upload X Upload file to remote server through SSH X = Path of the file to upload to the remote server
mac ssh:public-key Copy SSH Public Key
mac ssh:list List all the saved SSH credentials

Performance and maintenance Utilities

Command Description
mac system Show system information to review mac performance
mac temp Show temperature, fan and battery statistics
mac memory See memory usage sorted by memory consumption
mac trash:empty Empty trash
mac trash:size Calculate trash size

Git Utilities

Command Description
mac git:config Display local Git configuration
mac git:open Open current repository on Github
mac git:create:branch Create branch based on current branch
mac git:branches:date Get last update date for all branches in current project
mac git:undo-commit Undo latest commit
mac git:log See latest commits IDs and titles for current branch
mac git:branch See all branches
mac git:branch:rename Rename Git branch
mac git:branch:remove-local Remove local Git branch
mac git:branch:remove-remote Remove local and remote Git branch
mac git:settings Check Git settings
mac git:add-removed Add removed files to staged files
mac git:size Get size for current Git directory

Homebrew Utilities

Command Description
mac brew Get a list of installed Homebrew packages

mac-cli's People

Contributors

aguynamedryan avatar byscripts avatar cucumbur avatar daern91 avatar derphilipp avatar devmario avatar ethikz avatar ezekg avatar guarinogabriel avatar jacobkossman avatar jbhv12 avatar jherchen avatar jrw2252 avatar kwpolska avatar lockys avatar matrixbirds avatar mortenscheel avatar mxeise avatar osrecio avatar pehlicd avatar priom avatar rhnonose avatar ryuuke avatar scottwarren avatar thameera avatar thatlurker avatar tornjv avatar wfxr avatar winfried-van-loon avatar z11h avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mac-cli's Issues

Turn Off Command Echoing

Is it possible to turn off command echoing?

like when running something it shows the actual command underneath in green.

thanks!

$IS_SUDO is unnecessarily complex

First of all, great work on this script. I saw it on HN and it looks very useful 😄

You populate IS_SUDO as follows:

IS_SUDO=$(sudo -n uptime 2>&1|grep "load"|wc -l)

This works, but it's more fragile than just checking whether the uid is 0, which would imply that the script is being run as root:

IS_SUDO=$(id -u)

Alternatively, bash sets $EUID to the same value.

Conditions like

if [ ${IS_SUDO} -gt 0 ]; then

should then become

if [ ${IS_SUDO} -eq 0 ]; then # or just use ${EUID} directly

Nginx PostgreSQL

It would be great if there was integration with Nginx and PostgreSQL rather than the old LAMP style webstack that isn't so common in modern web development anymore.

mac find:duplicated not working

Just installed it and checked it out:

bb@broom:mac-cli/mac-cli % mac find:duplicated
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
       find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
uniq: illegal option -- w
usage: uniq [-c | -d | -u] [-i] [-f fields] [-s chars] [input [output]]
bb@broom:mac-cli/mac-cli % 

Existing dependencies

I'm running through the install now and It looks like it's forcing download of dependencies that already exist. It should check to see if they are available before trying to re-install. In some cases the re-install will be blocked but in others it could wipe out custom configs or installations.

Mac Time

running mac time returns

Command not found:
time

Parameters:

On OS X Yosemite with iTerm v 3.0.2

Syntax Error running 'mac install:all'

downloaded the latest version today and ran 'mac install:all' and it seemed to go well until all of the sudden I got the following:
/usr/local/bin/mac: line 2042: syntax error near unexpected token fi' /usr/local/bin/mac: line 2042: fi'

The full output from the command is here:
[mhood@bujold]~/Documents/Source/mac-cli$ mac install:all
Copying script to local folder...
Installing homebrew...
/usr/bin/ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
The current contents of /usr/local are bin Cellar CODEOFCONDUCT.md etc Frameworks include lib Library LICENSE.txt McAfee opt README.md selenium share var .git .github .gitignore
Installing pip...
sudo easy_install pip
Password:
Searching for pip
Best match: pip 8.1.2
Adding pip 8.1.2 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin

Using /usr/local/lib/python2.7/site-packages
Processing dependencies for pip
Finished processing dependencies for pip
Installing GIT...
brew install git
Warning: git-2.9.0 already installed
Installing pv (Pipe Viewer)...
brew install pv
Warning: pv-1.6.0 already installed
Installing Python...
brew install python
Warning: python-2.7.12 already installed
Copying script to local folder...
Installing homebrew...
/usr/bin/ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
The current contents of /usr/local are bin Cellar CODEOFCONDUCT.md etc Frameworks include lib Library LICENSE.txt McAfee opt README.md selenium share var .git .github .gitignore
Installing Git...
brew install git
Warning: git-2.9.0 already installed
Installing pv (Pipe Viewer)...
brew install pv
Warning: pv-1.6.0 already installed
Installing Python...
brew install python
Warning: python-2.7.12 already installed
Installing fdupes...
brew install fdupes

Warning: fdupes-1.51 already installed
Installing mycli (MySQL CLI - https://github.com/dbcli/mycli)...
brew install mycli
Warning: mycli-1.7.0 already installed
Installing Compass...
gem install compass
Fetching: sass-3.4.22.gem (100%)
Successfully installed sass-3.4.22
Fetching: multi_json-1.12.1.gem (100%)
Successfully installed multi_json-1.12.1
Fetching: compass-core-1.0.3.gem (100%)
Successfully installed compass-core-1.0.3
Fetching: compass-import-once-1.0.5.gem (100%)
Successfully installed compass-import-once-1.0.5
Fetching: chunky_png-1.3.6.gem (100%)
Successfully installed chunky_png-1.3.6
Fetching: rb-fsevent-0.9.7.gem (100%)
Successfully installed rb-fsevent-0.9.7
Fetching: ffi-1.9.10.gem (100%)
Building native extensions. This could take a while...
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ dir_s_mkdir - /usr/local/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0/ffi-1.9.10
Installing Glances (https://github.com/nicolargo/glances)...
pip install glances
Requirement already satisfied (use --upgrade to upgrade): glances in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): psutil>=2.0.0 in /Library/Python/2.7/site-packages (from glances)
Installing SpeedTest CLI (https://github.com/sivel/speedtest-cli)...
pip install speedtest-cli
Requirement already satisfied (use --upgrade to upgrade): speedtest-cli in /usr/local/lib/python2.7/site-packages
Installing N98 Magerun (https://github.com/netz98/n98-magerun)...
wget https://files.magerun.net/n98-magerun.phar
--2016-07-01 09:37:30-- https://files.magerun.net/n98-magerun.phar
Resolving files.magerun.net... 5.35.244.165
Connecting to files.magerun.net|5.35.244.165|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4107044 (3.9M) [application/octet-stream]
Saving to: ‘n98-magerun.phar’

n98-magerun.phar 100%[=================================================>] 3.92M 3.00MB/s in 1.3s

2016-07-01 09:37:32 (3.00 MB/s) - ‘n98-magerun.phar’ saved [4107044/4107044]

chmod +x ./n98-magerun.phar
sudo mv ./n98-magerun.phar /usr/local/bin/
Password:
Installing N98 Magerun 2 (https://github.com/netz98/n98-magerun2)...
wget https://files.magerun.net/n98-magerun2.phar
--2016-07-01 09:37:38-- https://files.magerun.net/n98-magerun2.phar
Resolving files.magerun.net... 5.35.244.165
Connecting to files.magerun.net|5.35.244.165|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3854770 (3.7M) [application/octet-stream]
Saving to: ‘n98-magerun2.phar’

n98-magerun2.phar 100%[=================================================>] 3.68M 2.78MB/s in 1.3s

2016-07-01 09:37:40 (2.78 MB/s) - ‘n98-magerun2.phar’ saved [3854770/3854770]

chmod +x ./n98-magerun2.phar
sudo mv ./n98-magerun2.phar /usr/local/bin/
Installing composer...
curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading 1.1.3...

Composer successfully installed to: /Users/mhood/Documents/Source/mac-cli/composer.phar
Use it: php composer.phar
sudo mv composer.phar /usr/local/bin/
Installing GIT cal (https://github.com/k4rthik/git-cal)...
brew install git-cal
Warning: git-cal-0.9.1 already installed
Installing ImageOptim...
brew cask install --appdir=~/Applications imageoptim --force
Warning: The default Caskroom location has moved to /usr/local/Caskroom.

Please migrate your Casks to the new location and delete /opt/homebrew-cask/Caskroom,
or if you would like to keep your Caskroom at /opt/homebrew-cask/Caskroom, add the
following to your HOMEBREW_CASK_OPTS:

--caskroom=/opt/homebrew-cask/Caskroom

For more details on each of those options, see Homebrew/homebrew-cask#21913.
==> Downloading https://imageoptim.com/ImageOptim1.6.1.tar.bz2
Already downloaded: /Users/mhood/Library/Caches/Homebrew/imageoptim-1.6.1.tar.bz2
==> Verifying checksum for Cask imageoptim
==> It seems there is already an App at '/Users/mhood/Applications/ImageOptim.app'; overwriting.
==> Removing App: '/Users/mhood/Applications/ImageOptim.app'
==> Moving App 'ImageOptim.app' to '/Users/mhood/Applications/ImageOptim.app'
🍺 imageoptim staged at '/opt/homebrew-cask/Caskroom/imageoptim/1.6.1' (0B)
Installing ImageOptim-CLI (https://github.com/JamieMason/ImageOptim-CLI)...
npm install -g imageoptim-cli
/usr/local/bin/imageOptim -> /usr/local/lib/node_modules/imageoptim-cli/bin/imageOptim
/usr/local/bin/pngquant -> /usr/local/lib/node_modules/imageoptim-cli/bin/pngquant
/usr/local/bin/imageOptimBashLib -> /usr/local/lib/node_modules/imageoptim-cli/bin/imageOptimBashLib
/usr/local/bin/imageOptimAppleScriptLib -> /usr/local/lib/node_modules/imageoptim-cli/bin/imageOptimAppleScriptLib
/usr/local/lib
└── [email protected]

Installing sass...
sudo gem install sass
Successfully installed sass-3.4.22
Parsing documentation for sass-3.4.22
Installing ri documentation for sass-3.4.22
Done installing documentation for sass after 12 seconds
1 gem installed
Installing storm (https://github.com/emre/storm)...
brew install stormssh
Warning: stormssh-0.6.7 already installed
Installing fdupes...
brew install fdupes

Warning: fdupes-1.51 already installed
Installing iStats...
sudo gem install iStats -n/usr/local/bin

Fetching: sparkr-0.4.1.gem (100%)
Successfully installed sparkr-0.4.1
Fetching: parseconfig-1.0.8.gem (100%)
Successfully installed parseconfig-1.0.8
Fetching: iStats-1.2.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed iStats-1.2.0
Parsing documentation for sparkr-0.4.1
Installing ri documentation for sparkr-0.4.1
Parsing documentation for parseconfig-1.0.8
Installing ri documentation for parseconfig-1.0.8
Parsing documentation for iStats-1.2.0
Installing ri documentation for iStats-1.2.0
Done installing documentation for sparkr, parseconfig, iStats after 0 seconds
3 gems installed
/usr/local/bin/mac: line 2042: syntax error near unexpected token fi' /usr/local/bin/mac: line 2042:
[mhood@bujold]~/Documents/Source/mac-cli$

Errors in the installation script

Hello everyone,

The installation script is throwing sed errors when you try to modify the default values.

Errors like:
sed: 1: "XXX": command c expects \ followed by text

Regards.

plugins/lamp "flaws"

generally Homebrew version uses local user as default without specifying a password, this option should be considered, using an aditional parameter would perhaps be a good idea, in lamp script a lot of if Statements would be necessary...
line 15:open -a /Applications/Sequel\ Pro.app <-- dependency not specified
line 25:mycli -u$mysql_user -p$mysql_password -S /Applications/MAMP/tmp/mysql/mysql.sock
will not work with Hombrew version, use perhaps -S $mysql_socket instead
line 191:open /Applications/MAMP\ PRO/MAMP\ PRO.app/ <-- dependency not specified

Atom Package Manager

Would it be ok, to include the atom package updates in the mac update command?

mac search:replace not working

when running mac search:replace and entering string to search and string that will replace I get:

sed: 1: "test.txt": undefined label 'est.txt'

How about mac awake

Great work and I really like it!

It' good to see mac sleep, how about integration of caffeine and make a mac awake (but screen can be off) for some computation moment with lid closed?

Thanks!

Looks like web:download-images tried to delete files

$ mac web:download-images https://instagram.com
wget -r -l 1 -A jpeg,jpg,bmp,gif,png https://instagram.com'

--2016-06-27 13:40:58--  https://instagram.com/
Resolving instagram.com... 52.2.9.122, 52.202.0.40, 52.2.136.73, ...
Connecting to instagram.com|52.2.9.122|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.instagram.com/ [following]
--2016-06-27 13:40:59--  https://www.instagram.com/
Resolving www.instagram.com... 173.252.120.81, 2a03:2880:2130:cf15:face:b00c::43fe
Connecting to www.instagram.com|173.252.120.81|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15148 (15K) [text/html]
Saving to: 'instagram.com/index.html'

instagram.com/index.html                            100%[===================================================================================================================>]  14.79K  46.9KB/s    in 0.3s

2016-06-27 13:41:01 (46.9 KB/s) - 'instagram.com/index.html' saved [15148/15148]

Removing instagram.com/index.html since it should be rejected.

FINISHED --2016-06-27 13:41:01--
Total wall clock time: 3.6s
Downloaded: 1 files, 15K in 0.3s (46.9 KB/s)
find: -delete: rmdir(./Library/Assistants): Permission denied
find: -delete: rmdir(./Library/Audio/MIDI Drivers): Permission denied
find: -delete: rmdir(./Library/Audio/Plug-Ins/Components): Permission denied
find: -delete: rmdir(./Library/Audio/Plug-Ins/Digidesign): Permission denied
find: -delete: rmdir(./Library/Audio/Plug-Ins/VST): Permission denied
find: -delete: rmdir(./Library/Audio/Sounds/Alerts): Permission denied
find: -delete: rmdir(./Library/Audio/Sounds/Banks): Permission denied
find: -delete: rmdir(./Library/iMovie/Plug-ins): Permission denied
find: -delete: rmdir(./Library/iMovie/Sound Effects): Permission denied
find: -delete: rmdir(./Library/Internet Plug-Ins): Permission denied
find: -delete: rmdir(./Library/Keyboard Layouts): Permission denied
find: -delete: rmdir(./Library/PreferencePanes): Permission denied
find: -delete: rmdir(./Library/Printers): Permission denied
find: -delete: rmdir(./Library/Screen Savers): Permission denied
find: -delete: rmdir(./Library/Services): Permission denied
find: -delete: rmdir(./Library/Sounds): Permission denied
find: -delete: rmdir(./Library/Voices): Permission denied

battery:status doesn't work

$ mac battery:status
system_profiler SPPowerDataType | awk '/Full/ || /Remaining/ || /Cycle/ { echo }' | sed -e 's/[^:]*/Battery/' -e 's/ *R.*):./\//' -e 's/ *Cycle/ (mAh)     Cycle/'


awk: illegal statement
 input record number 15, file
 source line number 1

OSX 10.11.6 Beta (15G24b)

Modular Features

Is there any chance of having a local config or local plugin option? An optional source ~/.mac-cli.sh line would allow people to expand the functionality with additional features. It would allow developers to make plugins for the mac-cli system. Right now they'd have to modify the massive shell script. It would be really cool if the script was broken into modules so people could enable or disable certain features for speed and add new ones easily.

If this is something you're open to I would consider submitting a PR to make it more like oh-my-zsh.

speedtest

Hi, i tried to do mac speedtest but apparantly its not working for me. I don't know if its just me...

$ mac speedtest
Do you want to install the Speed Test utility? (https://github.com/sindresorhus/speed-test) (Yes / No)Yes
/usr/local/bin/mac-cli/plugins/network: line 13: npm: command not found

Detect NVM

Currently certain path's are hardcoded (e.g. speedtest). When using NVM, you have a path variable $NVM_BIN available to get the path to the correct node_modules/bin folder. Would be nice to detect if this is present and use that instead, so it works properly for NVM users.

e.g. current hardcoded path vs $NVM_BIN:

$ ls /usr/local/lib/node_modules/
npm

$ ls $NVM_BIN
asar                     babel-external-helpers   bode-debug               elm-oracle               ied                      imageOptimBashLib        node-debug               npm                      pngquant                 wilfred
babel                    babel-node               boiler                   eslint                   imageOptim               ncu                      node-inspector           npm-check-updates        speed-test
babel-doctor             babel-node-debug         electron                 gulp                     imageOptimAppleScriptLib node                     nodemon                  nsp                      vue

(As you can see that includes speed-test)

mac speedtest not working

I tried to run mac speedtest, then got an error message saying npm is not installed. So I installed nvm and node. Question: mac install:all is supposed to install all dependencies, why not node? Then I ran mac speedtest again. The tool asked my if I want to install the speedtest tool. I was asking myself why this happens because I did a mac install:all, which is supposed to install all dependencies. After confirming "Yes", the speed-test utility was being installed, but no speedtest was run. So I ran mac speedtest again and ended up in an infinite loop.

bb@broom:~ % mac speedtest
Do you want to install the Speed Test utility? (https://github.com/sindresorhus/speed-test) (Yes / No)Yes
/usr/local/Cellar/nvm/0.31.2/versions/node/v6.2.2/bin/speed-test -> /usr/local/Cellar/nvm/0.31.2/versions/node/v6.2.2/lib/node_modules/speed-test/cli.js
/usr/local/Cellar/nvm/0.31.2/versions/node/v6.2.2/lib
└── [email protected] 

bb@broom:~ % mac speedtest
Do you want to install the Speed Test utility? (https://github.com/sindresorhus/speed-test) (Yes / No)Yes
/usr/local/Cellar/nvm/0.31.2/versions/node/v6.2.2/bin/speed-test -> /usr/local/Cellar/nvm/0.31.2/versions/node/v6.2.2/lib/node_modules/speed-test/cli.js
/usr/local/Cellar/nvm/0.31.2/versions/node/v6.2.2/lib
└── [email protected] 

bb@broom:~ % mac speedtest
Do you want to install the Speed Test utility? (https://github.com/sindresorhus/speed-test) (Yes / No)

help is shown for options not installed

running mac help displays options for plugins that haven't been installed, for example I skipped the magento plugins however mac help displays the commands for them which is very confusing.

Giving each utility a short description if incomplete

if you type say "mac git" it could give you all the git utilities options:

Git Utilities:
mac git:config: Display local Git configuration
mac git:open: Open current repository on Github
mac git:create:branch: Create branch based on current branch
mac git:branches:date Get last update date for all branches in current project
mac git:undo-commit: Undo latest commit
mac git:log: See latest commits IDs and titles for current branch
mac git:branch: See all branches
mac git:branch:rename: Rename Git branch
mac git:branch:remove-local: Remove local Git branch
mac git:branch:remove-remote: Remove local and remote Git branch
mac git:removeprintf macmac git:settings: Check Git settings
mac git:add-removed: Add removed files to staged files
mac git:size: Get size for current Git repository
mac github:streak: See current Git contribution streak

Tool doesn´t work well

I installed your tool with the command you list in your github. I see the tool does not fit my needs. How can I remove it and make all changes back? There should be a guide somewhere ;)

how to turn off mac:time

Hello,

I would like to turn off time display that was invoked by mac time (Show clock at top right position in Terminal/iTerm) because there is no command for disappearing the time display.

I know that it is possible to restart iTerm application to reset, but it is nice to have the feature.

Thanks in advance,
Daehee

mac brew:list => two lists?

Hi all,

i just installed mac-cli and when i type "mac brew:list" i see all packages twice.

I had homebrew installed long before and just recently installed "mac".
Are all my homebrew packages installed twice? I just had a glance while installing and some packages seem to be installed into /usr/local/bin and not in /usr/local/Cellar ... somehow, there are also many symlinks from /usr/local/bin to /usr/local/Cellar.

Do i need to uninstall my old homebrew installation? Or are the doubled packages just a display problem?

Greets,

Chris

mac time issue

While I type some words in Terminal, I experience kind of jamming issue.
Let say I want to type some words in Terminal like this

My name is skia92

but Terminal shows me

My nae is skia92

In this case, even though I recognise this as "My nae is skia92", Terminal still interpret string as "My name is skia92"

I think this problem happen because of sleep function. This is not a critical issue but quite uncomfortable.
Can you enhance this?

changed bash_profile

I had changed my terminal preset to colored output. After installation this colored output is gone. As this was a special preset, any guesses how i can restore it? Thanks in advance

Mac-cli is used to do something

Mac-cli did not see what this command is used in my Mac computer after the installation, the command has been to the following in the installation, ask what do you mean

MAMP Commands Broken with Custom MySQL Password

The MAMP commands are set to utilize the default root password.

An additional mamp_mysql_password variable should be added with the default set to root. Additionally, the MAMP MySQL process is started/restarted with a non-root user. Not particularly familiar but curious if that should be root instead.

With all dependencies installed, `mac speedtest` returns an error

Install script ran without issue, I'm running OS X 10.11.6. I get the following (what looks like) a Node error. I installed the speedtest-cli separately and ran that separately on the same system, that ran without issue.

events.js:141
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property 'settings' of null
    at gotServers (/usr/local/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:522:20)
    at /usr/local/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:48:16
    at /usr/local/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:238:7
    at Parser.<anonymous> (/usr/local/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:484:18)
    at emitOne (events.js:77:13)
    at Parser.emit (events.js:169:7)
    at Parser.exports.Parser.Parser.parseString (/usr/local/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:494:16)
    at Parser.parseString (/usr/local/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:7:59)
    at exports.parseString (/usr/local/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:535:19)
    at /usr/local/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:236:5

Uninstalling Mac-CLI

I wanna uninstall Mac-CLI after experiencing full of bugs and errors.
How can I uninstall it?

Error happened to YouCompleteMe for vim

Error happened to my vim YouCompleteMe after "brew install python", I don't know whether it is happened to others. There is python installed in Mac, why do you need to install python again?

Install Settings

I think a cool feature would be to set up the global variables (eg github account etc) on first install. So you don't have to go in to the file and update it manually.

Awesome utility! 👍

Uninstallation Instructions?

I just bumped into mac-cli, and while it looks interesting, I'd be a bit more comfortable with installing it if there were a straightforward way to uninstall it. Could uninstall instructions please be added to the README?

Thank you for your time.

Speedtest Error

It is totally possible that this is an issue with my system, but I've tired a few different things. Whenever I run mac speedtest I get this error. I've tried using both the root and the regular user account and neither seems to work.
events.js:160
throw er; // Unhandled 'error' event
^

TypeError: Cannot read property 'settings' of null
at gotServers (/usr/local/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:522:20)
at /usr/local/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:48:16
at /usr/local/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:238:7
at Parser. (/usr/local/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:489:18)
at emitOne (events.js:96:13)
at Parser.emit (events.js:188:7)
at Parser.exports.Parser.Parser.parseString (/usr/local/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:499:16)
at Parser.parseString (/usr/local/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:7:59)
at exports.parseString (/usr/local/lib/node_modules/speed-test/node_modules/xml2js/lib/xml2js.js:540:19)
at /usr/local/lib/node_modules/speed-test/node_modules/speedtest-net/index.js:236:5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.