-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzshrc
More file actions
95 lines (79 loc) · 2.49 KB
/
zshrc
File metadata and controls
95 lines (79 loc) · 2.49 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# vim: ft=bash ts=4 sw=2
#
# Executes commands at the start of an interactive session.
#
# zmodload zsh/zprof
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]] && [[ -z "$INTELLIJ_ENVIRONMENT_READER" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Source Aliases.
if [[ -f "${HOME}/.bash_aliases" ]]; then
source "${HOME}/.bash_aliases"
fi
# Customize to your needs...
#
export HISTORY_SUBSTRING_SEARCH_PREFIXED=1
# Path Options
#
# Set PATH so it includes local system admin programs.
if [[ -d /usr/local/sbin ]]; then
export PATH="/usr/local/sbin:${PATH}"
fi
# Set PATH so it includes user's private bin if it exists.
if [[ -d "${HOME}/.local/bin" ]]; then
export PATH="${HOME}/.local/bin:${PATH}"
fi
# Set MANPATH so it includes users' private man if it exists.
if [[ -d "${HOME}/.local/man" ]]; then
export MANPATH="${HOME}/.local/man:${MANPATH}"
fi
# Set INFOPATH so it includes users' private info if it exists.
if [[ -d "${HOME}/.local/info" ]]; then
export INFOPATH="${HOME}/.local/info:${INFOPATH}"
fi
# Editor Options
#
# Set the default text editor to use with various
# programs and commands.
export EDITOR='vim';
export VISUAL="$EDITOR";
# Apple
#
# On macOS configure ssh-add for keychain.
if [[ "$(uname -s)" == "Darwin" ]]; then
export APPLE_SSH_ADD_BEHAVIOR=macos
/usr/bin/ssh-add --apple-load-keychain -q
fi
# Add nvm (Node Version Manager) support.
# export NVM_DIR="${HOME}/.nvm"
# export NVM_SYMLINK_CURRENT=true
# [[ -s "$NVM_DIR/nvm.sh" ]] && \. "$NVM_DIR/nvm.sh"
# [[ -s "$NVM_DIR/bash_completion" ]] && \. "$NVM_DIR/bash_completion"
# Add fnm (Fast Node Manager) support.
FNM_PATH="/opt/homebrew/opt/fnm/bin"
if [ -d "$FNM_PATH" ]; then
eval "`fnm env`"
fi
# Homebrew unversioned Python.
if [[ -d "$(brew --prefix 2>/dev/null)/opt/python/libexec/bin" ]]; then
export PATH="$(brew --prefix 2>/dev/null)/opt/python/libexec/bin:${PATH}"
fi
# Add PHP Environment switcher support.
export PHPENV_ROOT="${HOME}/.phpenv"
if [[ -d "${PHPENV_ROOT}" ]]; then
export PATH="${PHPENV_ROOT}/bin:${PATH}"
eval "$(phpenv init -)"
fi
# Add Composer global vendor binaries to PATH.
if [[ -d "$(composer global config bin-dir --absolute 2>/dev/null)" ]]; then
PATH="${PATH}:$(composer global config bin-dir --absolute 2>/dev/null)"
export PATH
fi
# Initialise symfony-autocomplete command completion.
if command -v symfony-autocomplete 1>/dev/null; then
eval "$(symfony-autocomplete)"
fi
# semantic version sv4git config.
export SV4GIT_HOME="$HOME/.sv4git"
# zprof