43 lines
1.6 KiB
Bash
43 lines
1.6 KiB
Bash
HISTFILE=~/.zsh_history
|
|
HISTSIZE=50000
|
|
SAVEHIST=50000
|
|
setopt INC_APPEND_HISTORY SHARE_HISTORY HIST_IGNORE_ALL_DUPS HIST_REDUCE_BLANKS
|
|
|
|
ZPLUGINS=$HOME/.local/share/zsh/plugins
|
|
[[ -d $ZPLUGINS/zsh-autosuggestions ]] ||
|
|
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions $ZPLUGINS/zsh-autosuggestions
|
|
source $ZPLUGINS/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
|
[[ -d $ZPLUGINS/fast-syntax-highlighting ]] ||
|
|
git clone --depth=1 https://github.com/zdharma-continuum/fast-syntax-highlighting $ZPLUGINS/fast-syntax-highlighting
|
|
source $ZPLUGINS/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
|
|
|
[[ -d $ZPLUGINS/pure ]] ||
|
|
git clone --depth=1 https://github.com/sindresorhus/pure.git $ZPLUGINS/pure
|
|
fpath+=($ZPLUGINS/pure)
|
|
|
|
autoload -U promptinit; promptinit
|
|
prompt pure
|
|
|
|
source <(fzf --zsh)
|
|
eval "$(zoxide init --cmd cd zsh)"
|
|
|
|
alias v="nvim"
|
|
alias ls="eza --group-directories-first -a"
|
|
alias brew-update="brew update && brew upgrade && brew bundle --global --zap cleanup --force"
|
|
alias cmake-update="rm -rf build && cmake -S . -B build && cmake --build build"
|
|
alias oasis="ssh oasis"
|
|
|
|
export MANPAGER="sh -c 'col -bx | bat -p -l main'"
|
|
export HOMEBREW_NO_AUTO_UPDATE=1
|
|
export HOMEBREW_NO_ENV_HINTS=1
|
|
export HOMEBREW_DISPLAY_INSTALL_TIMES=0
|
|
export HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=1
|
|
export HOMEBREW_NO_EMOJI=1
|
|
|
|
[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun"
|
|
|
|
export PATH="$BUN_INSTALL/bin:/opt/homebrew/opt/ruby/bin:$HOME/.local/bin:$HOME/go/bin:$HOME/go/bin/my-bin:$PATH"
|
|
export LDFLAGS="-L/opt/homebrew/opt/ruby/lib"
|
|
export CPPFLAGS="-I/opt/homebrew/opt/ruby/include"
|