diff --git a/.stow-local-ignore b/.stow-local-ignore new file mode 100644 index 0000000..18914d0 --- /dev/null +++ b/.stow-local-ignore @@ -0,0 +1,4 @@ +README.md +\.git +\.gitignore + diff --git a/.zshenv b/.zshenv new file mode 100644 index 0000000..dbd4bba --- /dev/null +++ b/.zshenv @@ -0,0 +1,31 @@ +# Brew +if [ -d "/opt/homebrew/opt/ruby/bin" ]; then + export PATH=/opt/homebrew/opt/ruby/bin:$PATH + export PATH=`gem environment gemdir`/bin:$PATH +fi + +export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib" + +export ZSH="$HOME/.oh-my-zsh" +export EDITOR="/opt/homebrew/bin/nvim" + +# Flutter +export PATH=$PATH:~/sources/flutter/bin + +# Add scripts directory +export PATH=$PATH:~/sources/scripts/ + +# Add cargo +export PATH=$PATH:~/.cargo/bin + +# Set GOPATH +export GOPATH=~/sources/go + +# Rust +source "$HOME/.cargo/env" + +# NVM +export NVM_DIR="$HOME/.nvm" +[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm +[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion + diff --git a/.zshrc b/.zshrc index 07c4d35..6e176ec 100644 --- a/.zshrc +++ b/.zshrc @@ -1,20 +1,3 @@ - -# Path to your oh-my-zsh installation. -export ZSH="$HOME/.oh-my-zsh" -export EDITOR="/opt/homebrew/bin/nvim" - -# Add Flutter -export PATH=$PATH:~/sources/flutter/bin - -# Add scripts directory -export PATH=$PATH:~/sources/scripts/ - -# Add cargo -export PATH=$PATH:~/.cargo/bin - -# Set GOPATH -export GOPATH=~/sources/go - # Add homebrew (multiple platforms) CPU=$(uname -p) if [[ "$CPU" == "arm" ]]; then @@ -192,18 +175,3 @@ fi # Start X if necessary if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi -# NVM - -export NVM_DIR="$HOME/.nvm" -[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm -[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion - -# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. -export PATH="$PATH:$HOME/.rvm/bin" - -source /Users/garrit/.config/broot/launcher/bash/br - -if [ -d "/opt/homebrew/opt/ruby/bin" ]; then - export PATH=/opt/homebrew/opt/ruby/bin:$PATH - export PATH=`gem environment gemdir`/bin:$PATH -fi diff --git a/README.md b/README.md index 707f824..5e6ff1d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # Dotfiles +## Installing + +``` +stow . +``` + ## NeoVim ### Keybindings