add moro, cli productivity tool

This commit is contained in:
MorganGeek 2020-07-03 07:19:29 +02:00
parent eaa45cff1e
commit 325c6849e5
2 changed files with 71 additions and 68 deletions

View File

@ -10,7 +10,7 @@ chmod +x ~/.scripts/*.sh
# Install missing package (Linux)
case "$(uname -s)" in
Linux)
Linux)
echo "(Linux) Installing Development Tools"
yum install sudo -y
sudo yum groupinstall 'Development Tools' -y
@ -20,7 +20,7 @@ esac
# Install HomeBrew
case "$(uname -s)" in
Darwin)
Darwin)
echo "(Mac OS X) installing homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Prevent `Error: Your Homebrew is outdated. Please run `brew update`.`
@ -68,7 +68,7 @@ ln -snf ~/Code/dotfiles/private_dot_config/wtf ~/.config/wtf
# Other symblinks + Install Docker Desktop for Mac
case "$(uname -s)" in
Darwin)
Darwin)
echo "(Mac OS X) Adding symbolic links"
ln -snf "$HOME/.config/Code/User/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/Code/User/snippets" "$HOME/Library/Application Support/Code/User/snippets"
@ -80,7 +80,7 @@ esac
# Install dependencies (apps, fonts, ...) with Brew
case "$(uname -s)" in
Darwin)
Darwin)
echo "(Mac OS X) Brew installing stuff (apps, fonts, ...)"
ln -snf ~/Code/dotfiles/Brewfile ~/Brewfile
brew bundle
@ -89,7 +89,7 @@ esac
# Install dependencies (apps, fonts, ...) for CentOS
case "$(uname -s)" in
Linux)
Linux)
echo "(CentOS) Installing stuff (apps, ...)"
chmod +x ~/Code/dotfiles/centos.sh
~/Code/dotfiles/centos.sh
@ -114,7 +114,7 @@ echo "SDKMan updating"
sdk selfupdate
case "$(uname -s)" in
Linux)
Linux)
echo '(Linux) Installing ruby'
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
@ -160,7 +160,7 @@ cd "$HOME" || exit
# OSX Defaults
case "$(uname -s)" in
Darwin)
Darwin)
echo "(Mac OS X) Loading preferences"
sudo sh .macos
;;
@ -177,7 +177,7 @@ sudo pip install --upgrade pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
case "$(uname -s)" in
Darwin)
Darwin)
echo "(Mac OS X) Updating PATH for loading pip user installed packages"
ln -snf /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/pip pip3
export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin"
@ -194,16 +194,16 @@ pip install -r requirements.txt
# Install baton (CLI to manage Spotify playback) https://github.com/joshuathompson/baton
case "$(uname -s)" in
Darwin)
Darwin)
echo '(Mac OS X) Installing baton (spotify CLI)'
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-darwin-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
;;
Linux)
Linux)
echo '(Linux) Installing baton (spotify CLI)'
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-linux-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
;;
*)
*)
echo 'Non supported OS : Installation aborted for baton (spotify CLI)'
exit
;;
@ -216,6 +216,8 @@ rustup component add rustfmt
# Install pa11y tool for local webpage accessibility analysis
echo "Installing pa11y tool for local webpage accessibility analysis"
npm install -g pa11y
echo "Installing moro, a productivity CLI tool"
npm install -g moro
git clone https://github.com/sherlock-project/sherlock.git ~/Code/sherlock
cd sherlock || exit

View File

@ -5,7 +5,7 @@ sdk selfupdate
# Upgrading HomeBrew stuff
case "$(uname -s)" in
Darwin)
Darwin)
echo "(Mac OS X) Homebrew upgrading stuff"
brew update
#brew upgrade
@ -24,3 +24,4 @@ pip freeze >~/requirements.txt
# Update VIM plugins installed via Vundle https://github.com/VundleVim/Vundle.vim
vim +PluginUpdate +qall >/dev/null
rustup-update
npm update -g moro