26-07-2018

-add help for kymsu2
-cosmetic changes
This commit is contained in:
2018-07-26 09:39:58 +02:00
parent 8d63e5fde1
commit c03535eecf
5 changed files with 26 additions and 14 deletions

View File

@@ -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 ""

View File

@@ -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 ""

17
_npm.sh
View File

@@ -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 ""

View File

@@ -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 ""

View File

@@ -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