/
.zshrc
executable file
·58 lines (46 loc) · 1.66 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
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Load asdf
# Load the appropriate file depending on which exists
if [ -f "$HOME/.asdf/asdf.sh" ]; then
. "$HOME/.asdf/asdf.sh"
elif [ -f "/opt/homebrew/opt/asdf/libexec/asdf.sh" ]; then
. /opt/homebrew/opt/asdf/libexec/asdf.sh
fi
# append completions to fpath
fpath=(${ASDF_DIR}/completions $fpath)
# Load aliases
. ~/.alias
. ~/.function
# Output coloring
# Default coloring for BSD-based ls
export LSCOLORS="Gxfxcxdxbxegedabagacad"
# Default coloring for GNU-based ls
if [[ -z "$LS_COLORS" ]]; then
# Define LS_COLORS via dircolors if available. Otherwise, set a default
# equivalent to LSCOLORS (generated via https://geoff.greer.fm/lscolors)
if (( $+commands[dircolors] )); then
[[ -f "$HOME/.dircolors" ]] \
&& source <(dircolors -b "$HOME/.dircolors") \
|| source <(dircolors -b)
else
export LS_COLORS="di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43"
fi
fi
alias ls='ls -G'
# Save iex history
export ERL_AFLAGS="-kernel shell_history enabled"
# Also add Go binary to PATH since VSCode cannot discover the asdf shim on its own
export GOPATH="$HOME/.go"
export GOBIN="$GOPATH/bin"
export PATH="$GOBIN:$PATH"
# Add Begin CLI tools to PATH
# For seattlejs repo
# https://begin.com/docs/getting-started/installing-the-begin-cli
export BEGIN_INSTALL="/Users/kellirockwell/.begin"
export PATH="$BEGIN_INSTALL:$PATH"
# Add Homebrew-managed PG to PATH
export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"
# Invoke fuzzy command history search with ctrl+r. ctrl+r to cycle backwards and ctrl+s to cycle forwards.
# Load Starship config + prompt
eval "$(starship init zsh)"