-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
70 lines (52 loc) · 2.43 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
export VISUAL="${EDITOR}"
export TERM='kitty'
export TERMINAL='kitty'
export BROWSER='firefox'
export HISTORY_IGNORE="(ls|cd|pwd|exit|sudo reboot|history|cd -|cd ..)"
export PATH=$PATH:/home/andy/.spicetify
if [ -d "$HOME/.local/bin" ] ;
then PATH="$HOME/.local/bin:$PATH"
fi
ZSH_COMPDUMP="$HOME/.config/zsh/zcompdump"
HISTFILE=$HOME/.config/zsh/zhistory
HISTSIZE=5000
SAVEHIST=5000
setopt AUTOCD # change directory just by typing its name
setopt PROMPT_SUBST # enable command substitution in prompt
setopt MENU_COMPLETE # Automatically highlight first element of completion menu
setopt LIST_PACKED # The completion menu takes less space.
setopt AUTO_LIST # Automatically list choices on ambiguous completion.
setopt HIST_IGNORE_DUPS # Do not write events to history that are duplicates of previous events
setopt HIST_FIND_NO_DUPS # When searching history don't display results already cycled through twice
setopt COMPLETE_IN_WORD # Complete from both ends of a word.
if [[ "$TERM" == (kitty*|alacritty*|termite*|gnome*|konsole*|kterm*|putty*|rxvt*|screen*|tmux*|xterm*) ]]; then
# add-zsh-hook -Uz precmd xterm_title_precmd
# add-zsh-hook -Uz preexec xterm_title_preexec
fi
source /usr/share/nvm/init-nvm.sh
# Oh My Zsh
export ZSH="$HOME/.oh-my-zsh"
zstyle ':omz:update' mode auto # update automatically without asking
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(
git aliases dotenv docker docker-compose
fzf gradle kitty mvn nvm pip pm2 python
tldr vscode yarn rust ssh sudo systemd
)
source $ZSH/oh-my-zsh.sh
# zsh-completions, zsh-syntax-highlighting & zsh-autosuggestions
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src # oh my zsh install
# source $HOME/.config/zsh/catppuccin_mocha-zsh-syntax-highlighting.zsh # manual install
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # pacman install
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh # pacman install
####################
alias mirrors="sudo reflector --verbose --latest 5 --country 'France' --age 6 --sort rate --save /etc/pacman.d/mirrorlist"
alias grub-update="sudo grub-mkconfig -o /boot/grub/grub.cfg"
alias ls='lsd -a --group-directories-first'
alias ll='lsd -la --group-directories-first'
alias of="onefetch"
alias nf="fastfetch"
alias neofetch="fastfetch"
eval "$(starship init zsh)"
eval "$(zoxide init zsh --cmd cd)"