-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
77 lines (65 loc) · 2.14 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
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# ZSH_THEME="spaceship"
ZSH_THEME=""
plugins=(git zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
# Spaceship prompt
SPACESHIP_DIR_TRUNC=0
SPACESHIP_PROMPT_ORDER=(
time # Time stampts section
user # Username section
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
# package # Package version
# node # Node.js section
# ruby # Ruby section
# elm # Elm section
# elixir # Elixir section
# xcode # Xcode section
# swift # Swift section
# golang # Go section
# php # PHP section
# rust # Rust section
# haskell # Haskell Stack section
# julia # Julia section
# docker # Docker section
# aws # Amazon Web Services section
# gcloud # Google Cloud Platform section
# venv # virtualenv section
# conda # conda virtualenv section
# pyenv # Pyenv section
# dotnet # .NET section
# ember # Ember.js section
# kubectl # Kubectl context section
# terraform # Terraform workspace section
exec_time # Execution time
line_sep # Line break
battery # Battery level and status
vi_mode # Vi-mode indicator
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
# asdf version manager
. $(brew --prefix asdf)/libexec/asdf.sh
# custom env vars
export PATH="$HOME/bin:$PATH"
export EDITOR=vim
export DOCKER_HIDE_LEGACY_COMMANDS=true
# start gpg-agent
export GPG_TTY=$(tty)
gpgconf --launch gpg-agent
# direnv hook
eval "$(direnv hook zsh)"
# starship prompt hook
eval "$(starship init zsh)"
# zoxide hook
eval "$(zoxide init zsh)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# load aliases
[ -f ~/.aliases ] && source ~/.aliases
# load functions
[ -f ~/.functions ] && source ~/.functions