Add conditionals for moar (pager)
This commit is contained in:
parent
ecd77c15ee
commit
c9aab14f10
2 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,8 @@ alias xdebug='XDEBUG_CONFIG="remote_host=127.0.0.1 remote_port=9003"'
|
||||||
|
|
||||||
[ -x "$(command -v exa)" ] && alias ls='exa -lhF --git --icons --color=always --color-scale --time-style=long-iso --group-directories-first'
|
[ -x "$(command -v exa)" ] && alias ls='exa -lhF --git --icons --color=always --color-scale --time-style=long-iso --group-directories-first'
|
||||||
|
|
||||||
|
[ -x "$(command -v moar)" ] && alias less='moar'
|
||||||
|
|
||||||
[ -x "$(command -v rmtrash)" ] && alias rm='rmtrash'
|
[ -x "$(command -v rmtrash)" ] && alias rm='rmtrash'
|
||||||
[ -x "$(command -v rmdirtrash)" ] && alias rmdir='rmdirtrash'
|
[ -x "$(command -v rmdirtrash)" ] && alias rmdir='rmdirtrash'
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,8 @@ export HOSTNAME="$_hostname"
|
||||||
|
|
||||||
export KUBECONFIG="$HOME/.kube/config"
|
export KUBECONFIG="$HOME/.kube/config"
|
||||||
|
|
||||||
|
export LOCALE_ARCHIVE="/usr/lib/locale/locale-archive"
|
||||||
|
|
||||||
export MAILCAPS="$XDG_CONFIG_HOME/mailcap/mailcaprc"
|
export MAILCAPS="$XDG_CONFIG_HOME/mailcap/mailcaprc"
|
||||||
_makeflags=$(grep -c ^processor /proc/cpuinfo)
|
_makeflags=$(grep -c ^processor /proc/cpuinfo)
|
||||||
export MAKEFLAGS="-j$_makeflags"
|
export MAKEFLAGS="-j$_makeflags"
|
||||||
|
@ -72,6 +74,8 @@ export ZSH="$ZDOTDIR/oh-my-zsh"
|
||||||
### conditionals
|
### conditionals
|
||||||
|
|
||||||
[ -x "$(command -v bat)" ] && export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
[ -x "$(command -v bat)" ] && export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||||
|
[ -x "$(command -v moar)" ] && export MANPAGER="moar"
|
||||||
|
[ -x "$(command -v moar)" ] && export PAGER="moar"
|
||||||
|
|
||||||
set -a
|
set -a
|
||||||
[ -f "$HOME/.config/environment.local" ] && . "$HOME/.config/environment.local"
|
[ -f "$HOME/.config/environment.local" ] && . "$HOME/.config/environment.local"
|
||||||
|
|
Loading…
Reference in a new issue