dugout-> _pretty_things.dugout
Provide visual enhancement hooks for various system programs, including your default environments and IDEs
#!/bin/sh
###############################################################################
## COPYRIGHT (C) 2022-2023 NEW ENTITY OPERATIONS INC. and Additional Authors
## CREATED: 2022/10/16
## INSTANCE: pretty_things.dugout
## MODIFIED: 2023/12/20
## OVERVIEW: Provide visual enhancement hooks for various system programs,
## including your default environments and IDEs
## HISTORY: VERSION 1.3
## VERSION 1.0 (2022/10/16) Development
## VERSION 1.1 (2023/11/20)
## VERSION 1.2 (2023/12/17)
## VERSION 1.3 (2023/12/20) Production
###############################################################################
## Enhancements: Pretty em' up
###############################################################################
## curl
pretty_curl() {
alias curl='curl -L'
}
## dir
pretty_dir() {
eval "$(dircolors -b)"
## basic operations
alias dir='dir --color=auto;'
}
## *grep
pretty_grep() {
## *grep
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
}
## diff
pretty_diff() {
alias diff='diff --color=auto'
}
## ip
pretty_ip() {
alias ip='ip -c=auto'
}
## ls_user
pretty_ls_user() {
alias ls='ls --color=auto'
## Enhancement: LS_COLORS
LS_COLORS="$LS_COLORS":'di=01;31:'
export LS_COLORS
}
## ls_root
pretty_ls_root() {
alias ls="ls --color=auto"
## Enhancement: LS_COLORS
LS_COLORS="$LS_COLORS":'di=01;34:'
export LS_COLORS
}
## MANPAGER
pretty_MANPAGER() {
## -> Use: Colorize the Manpages: Also see /etc/man_db.conf
export MANPAGER="less -R --use-color -Dd+r -Du+b"
}
## nano
pretty_nano() {
alias nano='nano -c'
}
## ps_user
pretty_ps_user() {
## Default user Terminal Emulator style
PS1='\[\033[1;60m\]\u:\[\033[1;24m\] \W\[\033[0;31m\] \$ \[\033[0m\]'
}
## ps_root
pretty_ps_root() {
## Default root Terminal Emulator style
PS1='\[\033[1;36m\]\u: \[\033[1;33m\] \W\[\033[1;34m\] \$ \[\033[1;33m\]'
}
## vdir
pretty_vdir() {
alias vdir='vdir --color=auto;'
}
## Pretty-up the man command
man() {
community_pretty_man
}