-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
72 lines (55 loc) · 1.68 KB
/
dot_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
# make nvim the default editor :
export EDITOR=nvim
# PATH
export PATH=$BUN_INSTALL/bin:~/bin:/home/yushi_61/.local/share/bob/nvim-bin:$PATH
# Created by Zap installer
[ -f "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh" ] && source "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh"
plug "zap-zsh/supercharge"
plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-syntax-highlighting"
plug "z-shell/F-Sy-H"
plug "jeffreytse/zsh-vi-mode"
plug "zsh-users/zsh-history-substring-search"
plug "romkatv/powerlevel10k"
# Load and initialise completion system
autoload -Uz compinit
compinit
# zsh-history-substring-search keybinds
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# aliases
alias c="clear"
alias yy="yazi"
alias home="cd"
alias ls="eza --icons -a --git"
alias ll="eza --icons -la --git"
alias lt="eza --tree --level=2 --long --icons --git"
alias cd="z"
alias gs="git status"
alias gp="git push"
alias gc="git commit"
# wayland stuff
export XDG_SESSION_TYPE=wayland
export GDK_BACKEND=wayland
# Configure zsh history
export HISTFILE=$HOME/.zsh_history
export HISTSIZE=2000
export SAVEHIST=$HISTSIZE
setopt share_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_verify
setopt hist_ignore_space
# Enable auto-complete of aliases
setopt complete_aliases
# Enable comments
setopt interactive_comments
# zoxide use
eval "$(zoxide init zsh)"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# bun completions
[ -s "/home/yushi_61/.bun/_bun" ] && source "/home/yushi_61/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
source ~/powerlevel10k/powerlevel10k.zsh-theme