diff options
author | Rabbit Whispers <us@starfall.systems> | 2025-05-01 21:19:43 -0500 |
---|---|---|
committer | Rabbit Whispers <us@starfall.systems> | 2025-05-01 21:19:43 -0500 |
commit | 0bf7726d48ed8e2f8394e1b67488dc3fa6d92614 (patch) | |
tree | e76921a0548d69d0df74b389d9eaf8ce92af4d9c /.config/zsh/utils.zsh | |
parent | 715519a5b473663ccbcd47b8ea2fb4eebb4f0efd (diff) |
zsh: move some environment variables from zshenv to utils.zsh
Diffstat (limited to '.config/zsh/utils.zsh')
-rw-r--r-- | .config/zsh/utils.zsh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/.config/zsh/utils.zsh b/.config/zsh/utils.zsh index cfd9094..abb9e06 100644 --- a/.config/zsh/utils.zsh +++ b/.config/zsh/utils.zsh @@ -23,11 +23,21 @@ elif [[ $OSTYPE == 'cygwin' ]]; then alias sudo='cygstart --action=runas' fi +if has bat; then + alias cat='bat --plain --paging=never' + # another with --show-all? + export MANPAGER="sh -c 'col -bx | bat --plain --language man'" + export MANROFFROPT='-c' +fi + if has eza; then alias ls='eza' alias ll='eza --long --header --all' fi -has bat && alias cat='bat --plain --paging=never' # another for --show-all (and --number on base cat)? -has gpg2 && alias gpg='gpg2' +if has gpg2; then + alias gpg='gpg2' + export GPG_TTY=$TTY +fi + has tree && alias tree='tree -C' |