-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
36 lines (30 loc) · 1.15 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# zsh
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell"
DISABLE_UPDATE_PROMPT=true
plugins=(bundler chruby git gitfast history ruby sublime timer $plugins)
source $ZSH/oh-my-zsh.sh
unsetopt correct_all
setopt hist_find_no_dups
setopt hist_ignore_all_dups
setopt hist_reduce_blanks
setopt hist_save_no_dups
setopt pushdsilent
# exports
export EDITOR='subl -w'
export PATH=.:./bin:~/bin:$PATH
# homebrew
#eval "$(/usr/local/bin/brew shellenv)" # on Mac Intel machines
eval "$(/opt/homebrew/bin/brew shellenv)" # on Apple silicon machines
# chruby
source $HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh
source $HOMEBREW_PREFIX/opt/chruby/share/chruby/auto.sh
# zsh-autosuggestions
source $HOMEBREW_PREFIX/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# zsh-you-should-use
source $HOMEBREW_PREFIX/share/zsh-you-should-use/you-should-use.plugin.zsh
# aliases
alias grep='grep -a'
alias ruby_test='ag -g "\.rb$" | entr -c -s "ruby *_test.rb"'
alias seed_run='curl https://raw.githubusercontent.com/nulogy/how-to-code/main/run -o ./run; chmod a+x ./run'
alias seed_run_cop='curl https://raw.githubusercontent.com/nulogy/how-to-code/main/run_cop -o ./run; chmod a+x ./run'