diff --git a/README.md b/README.md index 5a06bb6..8c9ce4e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Dotfiles + My dotfiles config. diff --git a/exports.sh b/exports.sh index d8bd2b3..a3b36c7 100644 --- a/exports.sh +++ b/exports.sh @@ -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" diff --git a/installs/start.sh b/installs/start.sh index 483a125..bcf77b9 100755 --- a/installs/start.sh +++ b/installs/start.sh @@ -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 diff --git a/main.sh b/main.sh index df2f4ba..939296d 100755 --- a/main.sh +++ b/main.sh @@ -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 ~