Browse Source

zsh: add zshenv

master
Garrit Franke 2 years ago
parent
commit
d4a554ca07
  1. 4
      .stow-local-ignore
  2. 31
      .zshenv
  3. 32
      .zshrc
  4. 6
      README.md

4
.stow-local-ignore

@ -0,0 +1,4 @@
README.md
\.git
\.gitignore

31
.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

32
.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) # Add homebrew (multiple platforms)
CPU=$(uname -p) CPU=$(uname -p)
if [[ "$CPU" == "arm" ]]; then if [[ "$CPU" == "arm" ]]; then
@ -192,18 +175,3 @@ fi
# Start X if necessary # Start X if necessary
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx; fi 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

6
README.md

@ -1,5 +1,11 @@
# Dotfiles # Dotfiles
## Installing
```
stow .
```
## NeoVim ## NeoVim
### Keybindings ### Keybindings

Loading…
Cancel
Save