bash: lesspipe + checkwinsize

This commit is contained in:
Vladan Popovic 2024-10-07 11:46:59 +02:00
parent 12f9dcceb9
commit 62fd64ddb8

View file

@ -23,6 +23,12 @@ export PS1="${Yellow}\d \A ${Off}${Green}\u@\h: ${Off}\w ${Red}\$(parse_branch g
hash fzf 2>/dev/null && eval "$(fzf --bash)" hash fzf 2>/dev/null && eval "$(fzf --bash)"
export FZF_DEFAULT_OPTS='--border=horizontal --info=inline --no-reverse --height=50%' export FZF_DEFAULT_OPTS='--border=horizontal --info=inline --no-reverse --height=50%'
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# Use gpg-agent as ssh agent (and get a nice graphical prompt). # Use gpg-agent as ssh agent (and get a nice graphical prompt).
unset SSH_AGENT_PID unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then