-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zprofile
More file actions
50 lines (38 loc) · 1.55 KB
/
.zprofile
File metadata and controls
50 lines (38 loc) · 1.55 KB
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
#!/usr/bin/env zsh
# +------------------------------------------------------------------------+
# | INFO: https://gist.github.com/Linerre/f11ad4a6a934dcf01ee8415c9457e7b2 |
# +------------------------------------------------------------------------+
#
# editor
export ALTERNATE_EDITOR=""
export EDITOR="emacsclient -t" # $EDITOR opens in terminal
export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode
# zsh
export ZDOTDIR="$HOME/.config/zsh"
export HISTFILE="$ZDOTDIR/.zhistory" # History filepath
export HISTSIZE=10000 # Max events for internal history
export SAVEHIST=10000 # Max events in history file
# Go
export GOPATH=$(go env GOPATH)
# Python
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv >/dev/null; then
eval "$(pyenv init -)"
fi
# Rust
export PATH="$HOME/.cargo/bin:$PATH"
# PATH
export PATH="/opt/homebrew/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$PATH:$(go env GOPATH)/bin" # Go
export PATH="$HOME/.config/emacs/bin:$PATH" # Doom Emacs
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin" # fzf
fi
if [ -d "$(brew --prefix)/opt/grep/libexec/gnubin" ]; then
PATH="$(brew --prefix)/opt/grep/libexec/gnubin:$PATH" # GREP w/PCRE
fi
export PATH="$PATH:$HOME/Library/Application Support/JetBrains/Toolbox/scripts" # JetBrains Toolbox App
# OrbStack: command-line tools and integration
source ~/.orbstack/shell/init.zsh 2>/dev/null || :