Open winterjung opened 1 year ago
Update pman ref
pman() {
[[ $# -eq 0 ]] && >&2 echo "Usage: $0 command1" && return 1
mandoc -Tpdf "$(man -w $@)" | open -f -a Preview
}
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"
240507