Removes usages of Most, Figlet & CowSay + Sets Bat as default pager

This commit is contained in:
Samuel FORESTIER
2019-09-05 21:05:00 +02:00
parent b72d68e899
commit cc03877ed6
2 changed files with 13 additions and 44 deletions

34
.bashrc

@ -49,7 +49,7 @@ fi
# `ll` alias for `ls` !
alias ll='ls -lAh'
# Let's set a colorful prompt...
# Let's set a colorful prompt.
PS1='\
\[\033[00m\][\
\[\033[31m\]\u\
@ -61,38 +61,6 @@ PS1='\
\[\033[00m\]\$\
'
# ... and a colorful pager
export PAGER="/usr/bin/most -s"
case $(($RANDOM % 2)) in
'0')
archey
;;
'1')
# Hello honey
echo -e "\033[1;35m"
cowsay -f kiss "Je t'aime..."
case $(($RANDOM % 3)) in
'0')
figlet "... mon coeur < 3"
;;
'1')
figlet "... ma Cherie < 3"
;;
'2')
figlet "... mon amour < 3"
;;
esac
echo -e "\033[0;0m"
;;
esac
# Macro for archives extraction
extract()

23
.zshrc

@ -39,19 +39,20 @@ antigen apply
## Personal old stuffs ported there
setopt dotglob # Makes `*` match hidden files too
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
[ -x /usr/bin/most ] && export PAGER="/usr/bin/most -s"
## Let's setup beautiful CLI tools here !
[ -x /usr/bin/bat ] && \
alias cat='bat --pager less'
[ -x /usr/local/bin/prettyping ] && \
alias ping='prettyping --nolegend'
[ -f ~/.fzf/.fzf.zsh ] && source ~/.fzf/.fzf.zsh && \
alias preview="fzf --preview 'bat --color \"always\" {}'" && \
export FZF_DEFAULT_OPTS="--height 90% --no-reverse" && \
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'" && \
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:hidden:wrap --bind '?:toggle-preview'" && \
export FZF_CTRL_T_OPTS="--preview '((test -f {} && bat --color always {}) || tree -C {}) 2> /dev/null | head -200'"
[ -x /usr/bin/bat ] && { \
alias cat='bat' ; \
export PAGER="bat -p" ; \
export MANPAGER="sh -c 'col -b | bat -l man -p'" }
[ -x /usr/bin/bat ] && [ -f ~/.fzf/.fzf.zsh ] && source ~/.fzf/.fzf.zsh && { \
alias preview="fzf --preview 'bat --color \"always\" {}'" ; \
export FZF_DEFAULT_OPTS="--height 90% --no-reverse" ; \
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'" ; \
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:hidden:wrap --bind '?:toggle-preview'" ; \
export FZF_CTRL_T_OPTS="--preview '((test -f {} && bat --color always {}) || tree -C {}) 2> /dev/null | head -200'" }
[ -x /usr/local/bin/prettyping ] && { \
alias ping='prettyping --nolegend' }
alias ll="k"
alias ip="ip -color"