Removes usages of Most, Figlet & CowSay + Sets Bat as default pager
This commit is contained in:
34
.bashrc
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
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"
|
||||
|
||||
|
Reference in New Issue
Block a user