-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
64 lines (47 loc) · 1.97 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
# Powerline CLI (for some reason lives here?)
PATH=$PATH:$HOME/.local/bin
# Open source Dart packages.
PATH=$PATH:$HOME/.pub-cache/bin
# Homebrew executables.
PATH=$PATH:/opt/homebrew/bin
export ZSH_TMUX_AUTOSTART="true"
# Path to your oh-my-zsh installation.
export ZSH="${HOME}/.oh-my-zsh"
# oh-my-zsh theme.
ZSH_THEME="robbyrussell"
# Oh-my-zsh Plugins
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
vi-mode
)
# Enable oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Enable FZF
# FZF config
# use ripgrep instead of ack
export FZF_DEFAULT_COMMAND='rg --files'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS="--preview='bat --color always {}' --color=light --reverse"
# bat colorscheme
export BAT_THEME="ansi-dark"
# Source /shell files
for f in ~/shell/*; do source $f; done
# Default Fzf config.
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Set default editor to nvim.
export EDITOR="nvim"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/zachbai/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/zachbai/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/zachbai/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/zachbai/Downloads/google-cloud-sdk/completion.zsh.inc'; fi
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"