-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc.zsh
46 lines (36 loc) · 1.4 KB
/
zshrc.zsh
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
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
# oh-my-zsh
export ZSH="/Users/jpaddison/.oh-my-zsh"
ZSH_THEME=""
plugins=(git zsh-auto-nvm-use yarn-autocompletions)
source $ZSH/oh-my-zsh.sh
# logging
HISTFILE=~/.zsh_history
HISTFILESIZE=1000000000
HISTSIZE=1000000000
SAVEHIST=$HISTSIZE
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY
alias loggrepz='history -E 1 | rg'
# # git completion
# zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash
# fpath=(~/.zsh $fpath)
# autoload -Uz compinit && compinit
fpath+=$HOME/.zsh/pure
autoload -U promptinit; promptinit
prompt pure
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/jpaddison/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jpaddison/Downloads/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/jpaddison/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/jpaddison/Downloads/google-cloud-sdk/completion.zsh.inc'; fi
password () {
chars=${1:-32}
inputlen="$((chars * 2))"
openssl rand -base64 $inputlen | tr -dc A-Za-z0-9 | head -c$chars && echo ""
}
# openssl rand -base64 32 | tr -dc A-Za-z0-9
# TODO; might not be all I need
unsetopt share_history
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