-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
83 lines (63 loc) · 2.05 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
### ALIASES ###
alias grep='grep --color'
alias ls="ls -1F"
alias mv="mv -i"
alias cp="cp -i"
alias bat="bat -p"
alias log="git log --all --graph --decorate --oneline"
alias branch="git branch -vv"
### PROMPT ###
autoload -U colors && colors
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
GIT_PS1_SHOWCOLORHINTS=true
setopt prompt_subst
PROMPT='
%{$fg[magenta]%}----- %~$(__git_ps1) -----
$ %{$reset_color%}'
### SYNTAX HIGHLIGHTING ###
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
setopt INTERACTIVE_COMMENTS
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=125,bold
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=125,bold
ZSH_HIGHLIGHT_STYLES[path]=fg=166,underline
ZSH_HIGHLIGHT_STYLES[assign]=fg=037
### Python ###
export PYTHONDONTWRITEBYTECODE=1
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="$HOME/.poetry/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
### JVM ###
export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
### Javascript ###
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
### BETTER HISTORY ###
export HISTFILE=~/.zsh_history
export HISTFILESIZE=1000000000
export HISTSIZE=1000000000
setopt INC_APPEND_HISTORY
export HISTTIMEFORMAT="[%F %T] "
setopt EXTENDED_HISTORY
setopt HIST_IGNORE_ALL_DUPS
### MISC ###
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
export CLICOLOR=1
export PATH="$PATH":~/bin
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export PROMPT_EOL_MARK=""
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
### :) ###
echo "
Hello, Captain _____
__...---'-----\`---...__
_===============================
,----------------._/' \`---..._______...---'
(_______________||_) . . ,--'
/ /.---' \`/
'--------_- - - - - _/
\`--------'
"