forked from Jason-Adam/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
87 lines (69 loc) · 2.23 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
###################################################
# Path
###################################################
export GOPATH=$HOME/go
export GOROOT="$(brew --prefix go)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
# Path to your oh-my-zsh installation.
ZSH_DISABLE_COMPFIX=true
export ZSH=$HOME/.oh-my-zsh
###################################################
# Misc
###################################################
# vim mode
set -o vi
# Theme
ZSH_THEME="minimal"
COMPLETION_WAITING_DOTS="true"
# FZF
export FZF_DEFAULT_COMMAND='fd --type file --hidden --no-ignore'
export FZF_DEFAULT_OPTS='--height 30% --border'
export FZF_CTRL_T_COMMAND='fd --type f'
export FZF_CTRL_T_OPTS="--preview 'head {}'"
export FZF_CTRL_R_OPTS='--sort --exact'
export FZF_ALT_C_COMMAND='fd --type d'
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
alias vim='nvim'
alias vimfzf='nvim $(fzf)'
alias ctags="`brew --prefix`/bin/ctags"
###################################################
# Plugins
###################################################
plugins=(
git
vi-mode
fzf
tmux
zsh-syntax-highlighting
zsh-autosuggestions
zsh-completions
)
source $ZSH/oh-my-zsh.sh
# Aliases
alias reload!='clear && source ~/.zshrc'
alias cat='bat'
alias ls='exa --group-directories-first'
alias la='exa --group-directories-first --all'
alias ll='exa --group-directories-first --long'
alias lst='exa --group-directories-first --tree'
alias llt='exa --group-directories-first --long --tree'
# gcloud autocomplete
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/jasonadam/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jasonadam/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/jasonadam/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/jasonadam/google-cloud-sdk/completion.zsh.inc'; fi
export PATH="$HOME/bin:$PATH"
# Rust
export PATH="$PATH:$HOME/.cargo/bin"
# Poetry
export PATH="$HOME/.poetry/bin:$PATH"
# Node@16
export PATH="/usr/local/opt/node@16/bin:$PATH"
# ZLS
export PATH="$PATH:$HOME/zls/zig-out/bin"
# Load Environment variable file for python virtual envs
load-env() {
set -o allexport && \
source "$1" && \
set +o allexport;
}