-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
108 lines (91 loc) · 3.1 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Python packages e.g. pipenv
export PATH=$PATH:/Users/rusheb/Library/Python/3.8/bin/
export PATH=/opt/homebrew/opt/openjdk/bin:$PATH
export PATH=/Users/rusheb/bin:$PATH
export PATH="/Users/rusheb/.local/bin:$PATH"
## Plugins
source ~/.zsh/plugins/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# completion
fpath=(~/.zsh/completion $fpath)
autoload -Uz compinit; compinit -i
source ~/.zsh/plugins/fzf-tab/fzf-tab.plugin.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# export FZF_DEFAULT_OPTS="--bind=ctrl-l:toggle,ctrl-h:clear-query,enter:accept"
zstyle ':fzf-tab:*' fzf-bindings 'ctrl-i:toggle-down'
# previews for files and directories for ctrl-t
export FZF_CTRL_T_OPTS="--preview 'if [[ -d {} ]]; then
tree -C {} | head -200; else
bat --style=numbers --color=always --line-range :500 {};
fi'"
alias g=git
## Pipenv stuff ???
# eval "$( brew shellenv )"
# Pyenv
# # Set your preferred Python version.
# export PYENV_VERSION=3.10.6
#
# export PIPX_BIN_DIR=~/.local/bin
# export PYENV_ROOT=~/.pyenv
#
# # -U eliminates duplicates.
# export -U PATH path
# path=(
# $PIPX_BIN_DIR
# $PYENV_ROOT/{bin,shims}
# $path
# )
#
# # Updates the global python, if necessary, and installs/upgrades pipenv.
# pybake() {
# # Install pyenv, if necessary.
# command -v pyenv > /dev/null ||
# brew install pyenv
#
# # Install your preferred Python.
# # Does nothing if $PYENV_VERSION hasn't changed.
# pyenv install --skip-existing $PYENV_VERSION
#
# pyenv global $PYENV_VERSION # Make it your default.
# pip install -U pip # Update pip.
#
# # Install pipx (into ~/.local/bin) or update it.
# # pipx is like brew, but for Python.
# pip install -U --user pipx
#
# # Install or update pipenv.
# pipx ${${$( command -v pipenv ):+upgrade}:-install} pipenv
# }
#
# eval "$( pyenv init - )"
# eval "$( pip completion --zsh )"
# eval "$( register-python-argcomplete pipx )"
#
alias python=python3
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/rusheb/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/rusheb/miniconda3/etc/profile.d/conda.sh" ]; then
. "/Users/rusheb/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/rusheb/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# pyenv stuff -- is this working??
# export PYENV_ROOT="$HOME/.pyenv"
# command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
# eval "$(pyenv init -)"
export PYTHONPYCACHEPREFIX=/tmp/pycache
source ~/.zshenv