-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc_linux
49 lines (36 loc) · 1.28 KB
/
dot_zshrc_linux
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
# Path to your oh-my-zsh installation.
export ZSH="$HOME/repos/ohmyzsh"
# znap
[[ -f ~/repos/zsh-snap/znap.zsh ]] ||
git clone --depth 1 https://github.com/marlonrichert/zsh-snap.git ~/repos/zsh-snap
source ~/repos/zsh-snap/znap.zsh
# OMZ
#znap source ohmyzsh/ohmyzsh lib/{git,theme-and-appearance}
# Plugins
znap source marlonrichert/zsh-autocomplete
zstyle ':autocomplete:*' min-input 1
znap source zsh-users/zsh-autosuggestions
znap source zsh-users/zsh-completions
# User configuration
# aliases
# replace ls with exa
alias ls="exa"
alias tree="exa --tree"
#replace cat with bat
alias cat="bat"
#replace vim and vi with nvim
alias vim="nvim"
alias vi="nvim"
# ssh shit
#export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh
# history
export HISTFILE=~/.zsh_history
export HISTSIZE=1000000 # the number of items for the internal history list
export SAVEHIST=1000000 # maximum number of items for the history file
setopt HIST_IGNORE_ALL_DUPS # do not put duplicated command into history list
setopt HIST_SAVE_NO_DUPS # do not save duplicated command
setopt HIST_REDUCE_BLANKS # remove unnecessary blanks
setopt INC_APPEND_HISTORY_TIME # append command to history file immediately after execution
eval "$(zoxide init zsh --cmd cd)"
# remember to install starship
eval "$(starship init zsh)"