Add less output for zsh
This commit is contained in:
parent
07af0199f7
commit
05b7e695cd
2 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
# Personal BASHRC
|
# ~/.bashrc
|
||||||
|
#
|
||||||
|
|
||||||
# Source the originaly generated bashrc
|
# Source the originaly generated bashrc
|
||||||
. ~/SetupCockpit/dotfiles/bash/original_bashrc
|
. ~/SetupCockpit/dotfiles/bash/original_bashrc
|
||||||
|
|
|
@ -3,6 +3,17 @@
|
||||||
|
|
||||||
[[ -x /usr/bin/vim ]] && export EDITOR="/usr/bin/vim"
|
[[ -x /usr/bin/vim ]] && export EDITOR="/usr/bin/vim"
|
||||||
|
|
||||||
|
# Colored less output
|
||||||
|
export LESS=-R
|
||||||
|
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
||||||
|
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
||||||
|
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
|
||||||
|
export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')"
|
||||||
|
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
||||||
|
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
||||||
|
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||||||
|
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
||||||
|
|
||||||
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||||
exec startx
|
exec startx
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue