winterjung / dotfiles

my dotfiles
3 stars 0 forks source link

Replace tools #2

Open winterjung opened 10 months ago

winterjung commented 10 months ago

240507

winterjung commented 2 months ago
winterjung commented 2 months ago

Update pman ref

pman() {
  [[ $# -eq 0 ]] && >&2 echo "Usage: $0 command1" && return 1

  mandoc -Tpdf "$(man -w $@)" | open -f -a Preview
}
winterjung commented 2 months ago
export ZSH="$HOME/.oh-my-zsh"
export PATH=/opt/homebrew/bin:$PATH
export FZF_DEFAULT_OPTS='--height 40% --border'

ZSH_THEME="sorin"

zstyle ':omz:update' mode auto
zstyle ':omz:update' frequency 13

plugins=(
  fd
  fzf
  git
)

if command -v brew >/dev/null; then
  BREW_PREFIX="$(brew --prefix)"
fi

source $ZSH/oh-my-zsh.sh
source $BREW_PREFIX/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $BREW_PREFIX/share/zsh-autosuggestions/zsh-autosuggestions.zsh

eval "$(fzf --zsh)"
eval "$(mise activate zsh)"

pman() {
  [[ $# -eq 0 ]] && >&2 echo "Usage: $0 command1" && return 1

  mandoc -Tpdf "$(man -w $@)" | open -f -a Preview
}

alias loc="scc -c -d --gen --no-cocomo --no-size"
alias du="ncdu --color dark -rr -x --exclude .git"
alias l="eza -al -s type --no-user --time-style relative"