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
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra .
shfmt -w ./scripts
shfmt -w ./scripts ./data/zsh/extra-zshrc
build:
$(MAKE) clean

View File

@ -22,6 +22,7 @@ bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
# omz
zstyle ':omz:update' mode disabled
# https://github.com/ohmyzsh/ohmyzsh/issues/5700
DISABLE_AUTO_TITLE="true"
# https://github.com/ohmyzsh/ohmyzsh/issues/10291
@ -30,7 +31,7 @@ DISABLE_UNTRACKED_FILES_DIRTY="true"
DISABLE_MAGIC_FUNCTIONS="true"
# nvim
if command -v nvim &> /dev/null; then
if command -v nvim &>/dev/null; then
export EDITOR=nvim
export VISUAL=nvim
export GIT_EDITOR=nvim
@ -45,7 +46,7 @@ export GOPRIVATE=github.com/make-go-great,github.com/haunt98
# fzf
# 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_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type directory"
@ -62,7 +63,7 @@ alias g="git"
alias moe="make"
# https://zellij.dev/documentation/faq.html
if command -v zellij &> /dev/null; then
if command -v zellij &>/dev/null; then
alias zz="zellij"
fi
@ -73,21 +74,21 @@ alias kssh="kitty +kitten ssh"
export RESTIC_PASSWORD_FILE=$HOME/.restic_password_file
# 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
fi
# 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)"
fi
# https://github.com/dylanaraps/pfetch
if command -v pfetch &> /dev/null; then
if command -v pfetch &>/dev/null; then
pfetch
fi
# https://github.com/shlomif/fortune-mod
if command -v fortune &> /dev/null; then
if command -v fortune &>/dev/null; then
fortune
fi