config: disable omz update

main
sudo pacman -Syu 2023-03-16 15:43:03 +07:00
parent f98b981c6a
commit 1ace298503
2 changed files with 20 additions and 19 deletions

View File

@ -35,7 +35,7 @@ format:
go install mvdan.cc/sh/v3/cmd/shfmt@latest go install mvdan.cc/sh/v3/cmd/shfmt@latest
gofimports -w --company github.com/make-go-great,github.com/haunt98 . gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra . gofumpt -w -extra .
shfmt -w ./scripts shfmt -w ./scripts ./data/zsh/extra-zshrc
build: build:
$(MAKE) clean $(MAKE) clean

View File

@ -22,6 +22,7 @@ bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word bindkey "^[[1;3D" backward-word
# omz # omz
zstyle ':omz:update' mode disabled
# https://github.com/ohmyzsh/ohmyzsh/issues/5700 # https://github.com/ohmyzsh/ohmyzsh/issues/5700
DISABLE_AUTO_TITLE="true" DISABLE_AUTO_TITLE="true"
# https://github.com/ohmyzsh/ohmyzsh/issues/10291 # https://github.com/ohmyzsh/ohmyzsh/issues/10291
@ -30,10 +31,10 @@ DISABLE_UNTRACKED_FILES_DIRTY="true"
DISABLE_MAGIC_FUNCTIONS="true" DISABLE_MAGIC_FUNCTIONS="true"
# nvim # nvim
if command -v nvim &> /dev/null; then if command -v nvim &>/dev/null; then
export EDITOR=nvim export EDITOR=nvim
export VISUAL=nvim export VISUAL=nvim
export GIT_EDITOR=nvim export GIT_EDITOR=nvim
fi fi
# go # go
@ -45,10 +46,10 @@ export GOPRIVATE=github.com/make-go-great,github.com/haunt98
# fzf # fzf
# https://github.com/junegunn/fzf#environment-variables # https://github.com/junegunn/fzf#environment-variables
if command -v fd &> /dev/null; then if command -v fd &>/dev/null; then
export FZF_DEFAULT_COMMAND="fd --type file" export FZF_DEFAULT_COMMAND="fd --type file"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type directory" export FZF_ALT_C_COMMAND="fd --type directory"
fi fi
# https://github.com/catppuccin/fzf # https://github.com/catppuccin/fzf
@ -62,8 +63,8 @@ alias g="git"
alias moe="make" alias moe="make"
# https://zellij.dev/documentation/faq.html # https://zellij.dev/documentation/faq.html
if command -v zellij &> /dev/null; then if command -v zellij &>/dev/null; then
alias zz="zellij" alias zz="zellij"
fi fi
# https://sw.kovidgoyal.net/kitty/faq/ # https://sw.kovidgoyal.net/kitty/faq/
@ -73,21 +74,21 @@ alias kssh="kitty +kitten ssh"
export RESTIC_PASSWORD_FILE=$HOME/.restic_password_file export RESTIC_PASSWORD_FILE=$HOME/.restic_password_file
# https://difftastic.wilfred.me.uk/git.html # https://difftastic.wilfred.me.uk/git.html
if command -v difft &> /dev/null; then if command -v difft &>/dev/null; then
export GIT_EXTERNAL_DIFF=difft export GIT_EXTERNAL_DIFF=difft
fi fi
# https://github.com/sharkdp/vivid # https://github.com/sharkdp/vivid
if command -v vivid &> /dev/null; then if command -v vivid &>/dev/null; then
export LS_COLORS="$(vivid generate catppuccin-mocha)" export LS_COLORS="$(vivid generate catppuccin-mocha)"
fi fi
# https://github.com/dylanaraps/pfetch # https://github.com/dylanaraps/pfetch
if command -v pfetch &> /dev/null; then if command -v pfetch &>/dev/null; then
pfetch pfetch
fi fi
# https://github.com/shlomif/fortune-mod # https://github.com/shlomif/fortune-mod
if command -v fortune &> /dev/null; then if command -v fortune &>/dev/null; then
fortune fortune
fi fi