blob: f953594c8151816ab08e760393f64214060d5dc1 (
plain)
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
|
# ~nebula/.zshrc, 2023 edition
# //// zsh configuration //////////////////////////////////////////////////// #
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
autoload -U colors && colors
PS1=$'\e[0;32;1m%n\e[0;32m@\e[32;1m%m \e[34m%1~ \e[0m%# '
PROMPT="%F{green}%B%n%b@%B%m %F{blue}%1~%b%f %# "
else
PS1=$'%n@%m %1~ %# '
fi
path+=("$HOME/bin")
# //// third party configuration //////////////////////////////////////////// #
# -- GPG --
export GPG_TTY=$(tty)
# -- Homebrew --
eval "$(/opt/homebrew/bin/brew shellenv)"
if [[ -z DEVICE_HAS_PYENV ]]; then
# https://github.com/pyenv/pyenv#homebrew-in-macos
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
fi
# -- Node Version Manager --
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# -- Python --
path+=("$HOME/Library/Python/3.9/bin")
path+=("/Applications/Sublime Text.app/Contents/SharedSupport/bin")
# -- Python (pyenv) --
if [[ -z DEVICE_HAS_PYENV ]]; then
eval "$(pyenv init -)"
fi
export PATH
|