winterjung / dotfiles

my dotfiles
3 stars 0 forks source link

Replace tools #2

Open winterjung opened 1 year ago

winterjung commented 1 year ago

240507

winterjung commented 6 months ago
winterjung commented 6 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 6 months ago
export ZSH="$HOME/.oh-my-zsh"
export PATH=/opt/homebrew/bin:$PATH
export PATH=$HOME/go/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export FZF_DEFAULT_OPTS='--height 40% --border'

ZSH_THEME="sorin"
DISABLE_AUTO_TITLE="true"

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

plugins=(
  fzf
  git
  z
)

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"