-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
42 lines (35 loc) · 1.13 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
# Add deno completions to search path
if [[ ":$FPATH:" != *":/home/gustavo/.zsh/completions:"* ]]; then export FPATH="/home/gustavo/.zsh/completions:$FPATH"; fi
export HISTFILE=$HOME/.zsh_history
export HISTTIMEFORMAT="[%F %T] "
export SAVEHIST=1000
export HISTSIZE=999
if [[ $(uname -n) = "loggi" ]]; then
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
export POETRY_VERSION=1.2.2
export POETRY_HOME="/opt/poetry"
export PATH="$POETRY_HOME/bin:$PATH"
fi
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
## functions
function note () {
nvim $NOTES_HOME/$(date +%Y%m%d%H%M%S).md
}
function journal () {
nvim $JOURNALS_HOME/$(date +%Y-%m-%d).md
}
eval "$(sheldon source)"
eval "$(zoxide init zsh)"
eval "$(starship init zsh)"
setopt share_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_verify
. "/home/gustavo/.deno/env"
# Initialize zsh completions (added by deno install script)
autoload -Uz compinit
compinit