From c03535eecfe6f02301b0022aaac605a72ee0754e Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Thu, 26 Jul 2018 09:39:58 +0200 Subject: [PATCH] 26-07-2018 -add help for kymsu2 -cosmetic changes --- _homebrew.sh | 9 ++++++--- _mas.sh | 4 +++- _npm.sh | 17 +++++++++++------ _pip.sh | 7 ++++--- atom.sh | 3 ++- 5 files changed, 26 insertions(+), 14 deletions(-) diff --git a/_homebrew.sh b/_homebrew.sh index 4be8de5..1fc5459 100755 --- a/_homebrew.sh +++ b/_homebrew.sh @@ -9,11 +9,12 @@ display_info=true # No distract mode (Casks with 'latest' version number won't be updated) no_distract=false -if [[ $1 == "nodistract" ]]; then +if [[ $1 == "--nodistract" ]]; then no_distract=true fi -echo "🍺 Homebrew" +echo -e "\033[1m🍺 Homebrew \033[0m" + brew update echo "" @@ -107,7 +108,7 @@ brew doctor brew missing echo "" -if [[ $1 == "cleanup" ]]; then +if [[ $1 == "--cleanup" ]]; then echo "🍺 Cleaning brewery" ##brew cleanup -s brew cleanup --prune=30 @@ -115,3 +116,5 @@ if [[ $1 == "cleanup" ]]; then brew cask cleanup --outdated echo "" fi + +echo "" diff --git a/_mas.sh b/_mas.sh index 1ef06b2..eadd778 100755 --- a/_mas.sh +++ b/_mas.sh @@ -3,7 +3,8 @@ # Mac Appstore plugin for KYMSU # https://github.com/welcoMattic/kymsu -echo "🍏 Mac App Store updates come fast as lightning" +echo -e "\033[1m🍏 Mac App Store updates come fast as lightning \033[0m" + #mas outdated massy=`mas outdated` echo "" @@ -27,3 +28,4 @@ else fi echo "" +echo "" diff --git a/_npm.sh b/_npm.sh index 83611de..1a59f58 100755 --- a/_npm.sh +++ b/_npm.sh @@ -16,15 +16,20 @@ # https://github.com/npm/npm/issues/17744 -echo " 🌿 npm" -cd /Users/bruno/Sites/node_modules/ -npm ls -npm outdated -npm outdated | awk '{print $1}' | xargs npm update +echo -e "\033[1m🌿 npm \033[0m" echo "" -if [[ $1 == "npm_cleanup" ]]; then +cd /Users/bruno/Sites/node_modules/ +echo -e "\033[4mInstalled scripts:\033[0m" +npm ls +outdated=$(npm outdated) +echo "$outdated" | awk '{print $1}' | xargs npm update +echo "" + +if [[ $1 == "--npm_cleanup" ]]; then echo "🌬 Cleaning npm cache" npm cache clean echo "" fi + +echo "" diff --git a/_pip.sh b/_pip.sh index ffe9ef5..1d38387 100755 --- a/_pip.sh +++ b/_pip.sh @@ -12,7 +12,7 @@ no_distract=false #add module to do_not_update array declare -a do_not_update=( "tornado","urllib3") -if [[ $1 == "nodistract" ]]; then +if [[ $1 == "--nodistract" ]]; then no_distract=true fi @@ -21,8 +21,8 @@ if ! [ -x "$(command -v $version)" ]; then exit 1 fi -echo "" -echo "🐍 Update $version (Python 3)" +echo -e "\033[1m🐍 $version (Python 3) \033[0m" + echo "" $version install --upgrade pip echo "" @@ -88,3 +88,4 @@ else fi echo "" +echo "" diff --git a/atom.sh b/atom.sh index 8aa4c34..5f96bfa 100755 --- a/atom.sh +++ b/atom.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash -echo "⚛️ Atom editor will be shiny when you'll be back from your coffee/tea break!" +echo -e "\033[1m⚛️ Atom editor will be shiny when you'll be back from your coffee/tea break! \033[0m" + if hash apm-beta 2>/dev/null; then apm-beta upgrade -c false fi