-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
98 lines (88 loc) · 3.63 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
# aliases
alias sudo="sudo "
alias cd="z"
alias ls="eza"
alias pn="pnpm"
alias ..="cd .."
alias ~="cd ~"
alias n="nvim"
alias tx="tmux"
alias py="python"
alias rmf="rm -rf"
alias q="exit"
alias c="clear"
alias keploy='sudo -E env PATH="$PATH" keploy'
. "/home/lovelindhoni/.deno/env"
# env
export EDITOR='nvim'
export GIT_EDITOR='nvim'
export GIT_PAGER='bat'
# export CMAKE_GENERATOR='Ninja'
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export DIRENV_LOG_FORMAT=
# zsh history stuffs
HISTFILE=~/.zsh-utils/zsh_history # location of the history file
export HISTFILESIZE=10000000 # history limit of the file on disk
export HISTSIZE=10000000 # current session's history limit
export SAVEHIST=500000 # zsh saves this many lines from the in-memory history list to the history file upon shell exit
setopt INC_APPEND_HISTORY # history file is updated immediately after a command is entered
setopt SHARE_HISTORY # allows multiple Zsh sessions to share the same command history
setopt EXTENDED_HISTORY # records the time when each command was executed along with the command itself
setopt APPENDHISTORY # ensures that each command entered in the current session is appended to the history file immediately after execution'
export ZSH_FZF_HISTORY_SEARCH_EVENT_NUMBERS=0
export ZSH_FZF_HISTORY_SEARCH_DATES_IN_SEARCH=0
export ZSH_FZF_HISTORY_SEARCH_REMOVE_DUPLICATES=0
### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/zinit-annex-as-monitor \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-rust
zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-autosuggestions
zinit light chitoku-k/fzf-zsh-completions
zinit light mroth/evalcache
# Load starship theme
# line 1: `starship` binary as command, from github release
# line 2: starship setup at clone(create init.zsh, completion)
# line 3: pull behavior same as clone, source init.zsh
zinit ice as"command" from"gh-r" \
atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \
atpull"%atclone" src"init.zsh"
zinit light starship/starship
_evalcache fzf --zsh
_evalcache zoxide init zsh
_evalcache direnv hook zsh
# bindkey '^I' autosuggest-accept
# zinit ice depth=1; zinit light romkatv/powerlevel10k
### End of Zinit's installer chunk
# sourcing
source "/home/lovelindhoni/.zsh-utils/functions.zsh"
source $HOME/.cargo/env
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/lovelindhoni/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/lovelindhoni/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/lovelindhoni/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/lovelindhoni/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<