26-07-2018
-add help for kymsu2 -cosmetic changes
This commit is contained in:
@@ -9,11 +9,12 @@ display_info=true
|
|||||||
# No distract mode (Casks with 'latest' version number won't be updated)
|
# No distract mode (Casks with 'latest' version number won't be updated)
|
||||||
no_distract=false
|
no_distract=false
|
||||||
|
|
||||||
if [[ $1 == "nodistract" ]]; then
|
if [[ $1 == "--nodistract" ]]; then
|
||||||
no_distract=true
|
no_distract=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "🍺 Homebrew"
|
echo -e "\033[1m🍺 Homebrew \033[0m"
|
||||||
|
|
||||||
brew update
|
brew update
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
@@ -107,7 +108,7 @@ brew doctor
|
|||||||
brew missing
|
brew missing
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [[ $1 == "cleanup" ]]; then
|
if [[ $1 == "--cleanup" ]]; then
|
||||||
echo "🍺 Cleaning brewery"
|
echo "🍺 Cleaning brewery"
|
||||||
##brew cleanup -s
|
##brew cleanup -s
|
||||||
brew cleanup --prune=30
|
brew cleanup --prune=30
|
||||||
@@ -115,3 +116,5 @@ if [[ $1 == "cleanup" ]]; then
|
|||||||
brew cask cleanup --outdated
|
brew cask cleanup --outdated
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|||||||
4
_mas.sh
4
_mas.sh
@@ -3,7 +3,8 @@
|
|||||||
# Mac Appstore plugin for KYMSU
|
# Mac Appstore plugin for KYMSU
|
||||||
# https://github.com/welcoMattic/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
|
#mas outdated
|
||||||
massy=`mas outdated`
|
massy=`mas outdated`
|
||||||
echo ""
|
echo ""
|
||||||
@@ -27,3 +28,4 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
echo ""
|
||||||
|
|||||||
17
_npm.sh
17
_npm.sh
@@ -16,15 +16,20 @@
|
|||||||
|
|
||||||
# https://github.com/npm/npm/issues/17744
|
# https://github.com/npm/npm/issues/17744
|
||||||
|
|
||||||
echo " 🌿 npm"
|
echo -e "\033[1m🌿 npm \033[0m"
|
||||||
cd /Users/bruno/Sites/node_modules/
|
|
||||||
npm ls
|
|
||||||
npm outdated
|
|
||||||
npm outdated | awk '{print $1}' | xargs npm update
|
|
||||||
echo ""
|
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"
|
echo "🌬 Cleaning npm cache"
|
||||||
npm cache clean
|
npm cache clean
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|||||||
7
_pip.sh
7
_pip.sh
@@ -12,7 +12,7 @@ no_distract=false
|
|||||||
#add module to do_not_update array
|
#add module to do_not_update array
|
||||||
declare -a do_not_update=( "tornado","urllib3")
|
declare -a do_not_update=( "tornado","urllib3")
|
||||||
|
|
||||||
if [[ $1 == "nodistract" ]]; then
|
if [[ $1 == "--nodistract" ]]; then
|
||||||
no_distract=true
|
no_distract=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -21,8 +21,8 @@ if ! [ -x "$(command -v $version)" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo -e "\033[1m🐍 $version (Python 3) \033[0m"
|
||||||
echo "🐍 Update $version (Python 3)"
|
|
||||||
echo ""
|
echo ""
|
||||||
$version install --upgrade pip
|
$version install --upgrade pip
|
||||||
echo ""
|
echo ""
|
||||||
@@ -88,3 +88,4 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
echo ""
|
||||||
|
|||||||
3
atom.sh
3
atom.sh
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
if hash apm-beta 2>/dev/null; then
|
||||||
apm-beta upgrade -c false
|
apm-beta upgrade -c false
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user