|
1 |
| -# If you come from bash you might have to change your $PATH. |
2 |
| -# export PATH=$HOME/bin:/usr/local/bin:$PATH |
| 1 | +#!/bin/zsh |
| 2 | + |
| 3 | +typeset -U path # Prevent duplicate entries on the $PATH |
3 | 4 |
|
4 | 5 | # ENV VARS
|
5 |
| -export LANG=en_US.UTF-8 |
| 6 | +export LANG="en_US.UTF-8" |
6 | 7 | export PYENV_ROOT="$HOME/.pyenv"
|
| 8 | +export RBENV_ROOT="$HOME/.rbenv" |
7 | 9 | export ZSH="$HOME/.oh-my-zsh"
|
| 10 | +export GEM_HOME="$HOME/.gem" |
8 | 11 | export N_PRESERVE_NPM=1
|
9 | 12 | export N_PRESERVE_COREPACK=1
|
10 | 13 |
|
11 |
| - |
12 | 14 | # PATH
|
13 |
| -export PATH="$PATH:$PYENV_ROOT/bin" |
14 |
| -export PATH="$PATH:/usr/local/sbin" |
| 15 | +path+=$N_PREFIX/bin |
| 16 | +path+=$PYENV_ROOT/bin |
| 17 | +path+=$RBENV_ROOT/shims |
| 18 | +path+=$GEM_HOME/bin # Ruby gems |
| 19 | +path=('/opt/homebrew/bin' '/opt/homebrew/sbin' $path) # Ensure Homebrew installed binaries take precedence |
| 20 | +export PATH # Export to sub-processes (make it inherited by child processes) |
15 | 21 |
|
16 | 22 | # Set name of the theme to load --- if set to "random", it will
|
17 | 23 | # load a random theme each time oh-my-zsh is loaded, in which case,
|
18 | 24 | # to know which specific one was loaded, run: echo $RANDOM_THEME
|
19 | 25 | # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
20 | 26 | ZSH_THEME="robbyrussell"
|
21 | 27 |
|
22 |
| -# Set list of themes to pick from when loading at random |
23 |
| -# Setting this variable when ZSH_THEME=random will cause zsh to load |
24 |
| -# a theme from this variable instead of looking in $ZSH/themes/ |
25 |
| -# If set to an empty array, this variable will have no effect. |
26 |
| -# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) |
27 |
| - |
28 | 28 | # Uncomment the following line to use case-sensitive completion.
|
29 | 29 | # CASE_SENSITIVE="true"
|
30 | 30 |
|
@@ -85,39 +85,15 @@ plugins=(
|
85 | 85 | zsh-syntax-highlighting
|
86 | 86 | )
|
87 | 87 |
|
88 |
| -# User configuration |
89 |
| - |
90 |
| -# export MANPATH="/usr/local/man:$MANPATH" |
91 |
| - |
92 |
| -# Preferred editor for local and remote sessions |
93 |
| -# if [[ -n $SSH_CONNECTION ]]; then |
94 |
| -# export EDITOR='vim' |
95 |
| -# else |
96 |
| -# export EDITOR='mvim' |
97 |
| -# fi |
98 |
| - |
99 |
| -# Compilation flags |
100 |
| -# export ARCHFLAGS="-arch x86_64" |
101 |
| - |
102 |
| -# Set personal aliases, overriding those provided by oh-my-zsh libs, |
103 |
| -# plugins, and themes. Aliases can be placed here, though oh-my-zsh |
104 |
| -# users are encouraged to define aliases within the ZSH_CUSTOM folder. |
105 |
| -# For a full list of active aliases, run `alias`. |
106 |
| -# |
107 |
| -# Example aliases |
108 |
| -# alias zshconfig="mate ~/.zshrc" |
109 |
| -# alias ohmyzsh="mate ~/.oh-my-zsh" |
110 |
| - |
111 | 88 | alias be="bundle exec"
|
112 |
| -alias test-reset="bundle exec rake db:drop RAILS_ENV=test && bundle exec rake db:create RAILS_ENV=test && bundle exec rails db:schema:load RAILS_ENV=test" |
113 |
| - |
114 | 89 | alias brewery="brew update && brew upgrade && brew upgrade --cask && brew cleanup"
|
115 | 90 | alias c="clear"
|
| 91 | +alias gitconfig="code $HOME/.gitconfig" |
| 92 | +alias macsetup="code $HOME/.macsetup" |
116 | 93 | alias show_path="tr ':' '\n' <<< \"$PATH\""
|
117 | 94 | alias speedtest="networkQuality"
|
118 |
| -alias gitconfig="code $HOME/.gitconfig" |
| 95 | +alias test-reset="bundle exec rake db:drop RAILS_ENV=test && bundle exec rake db:create RAILS_ENV=test && bundle exec rails db:schema:load RAILS_ENV=test" |
119 | 96 | alias zshconfig="code $HOME/.zshrc"
|
120 |
| -alias macsetup="code $HOME/.macsetup" |
121 | 97 |
|
122 | 98 | source $ZSH/oh-my-zsh.sh
|
123 | 99 |
|
|
0 commit comments