switch case os start.sh

This commit is contained in:
2021-02-16 20:05:38 +01:00
parent bc1a35217c
commit bfef7cfa79
4 changed files with 52 additions and 33 deletions
+1
View File
@@ -1,2 +1,3 @@
# Dotfiles
My dotfiles config.
+2
View File
@@ -4,6 +4,8 @@ export PATH="/opt/local/bin:$PATH"
export PATH="/Users/marcpartensky/flutter/bin:$PATH"
export PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export CLICOLOR=1
export TEST="This is a test"
+46 -32
View File
@@ -1,40 +1,54 @@
#!/usr/bin/env zsh
# This file aims to load all dependencies on a new fresh osx environment.
# It is inspired from https://gist.github.com/w3cj/76cd9fb9f346e153b6f0dc46fd025620
xcode-select --install /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install iterm2
brew install neovim
# update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts
# set brew bash as default shell
brew install fortune
brew install cowsay
brew install ccat
brew install highlight
brew install cmatrix
brew install lolcat
brew install figlet
brew install toilet
brew install watch
brew install jq fzf peco #emoji completion
brew install emojify
# xcode-select --install /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#
brew install git
# brew install vcprompt
# update bash_profile
# brew cask install spectacle
brew cask install rectangle
brew cask install alfred
# set CMD+space to launch alfred
# brew cask install firefox
# install nvm/node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install stable
npm install -g lite-server eslint
brew cask install visual-studio-code
brew cask install hyperswitch
case `uname` in
Darwin)
# commands for OS X go here
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install git
brew install alacritty
# brew cask install iterm2
brew install neovim
brew install pyenv
brew install node
brew install fortune
brew install cowsay
brew install ccat
brew install highlight
# brew install cmatrix tmatrix
brew install lolcat
brew install figlet
brew install toilet
brew install watch
brew install jq fzf peco #emoji completion
brew install emojify
# brew install vcprompt
# brew cask install spectacle
# brew cask install firefox
# install nvm/node
brew cask install rectangle
brew cask install alfred
;;
Linux)
# commands for Linux go here
;;
FreeBSD)
# commands for FreeBSD go here
;;
esac
# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# nvm install stable
# npm install -g lite-server eslint
# brew cask install visual-studio-code
# brew cask install hyperswitch
# dynamic history search
pip install percol
+3 -1
View File
@@ -63,9 +63,11 @@ bindkey '\t' autosuggest-accept
# export GREP_OPTIONS="--color=always"
# export GREP_COLORS="ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36"
eval "$(pyenv init -)"
source ${0:a:h}/exports.sh
source ${0:a:h}/aliases.sh
source ${0:a:h}/functions.sh
source ${0:a:h}/exports.sh
ln -snf ${0:a:h}/.zshenv ~
ln -snf ${0:a:h}/.p10k.zsh ~