1
0
Fork 0

I don't use zsh after all, more control over grc in bashrc, bashrc cleanup

This commit is contained in:
Von Random 2017-05-30 19:49:03 +03:00
parent 0eafdc61be
commit 18ff41af0e
3 changed files with 20 additions and 275 deletions

View file

@ -4,8 +4,20 @@ vscripts="${HOME}/vscripts"
completion_path='/usr/share/bash-completion/bash_completion'
[[ -r "${completion_path}" ]] && . "${completion_path}"
grc_rc='/etc/profile.d/grc.bashrc'
[[ -r "${grc_rc}" ]] && . "${grc_rc}"
# grc
colorize() {
local cmds cmd
cmds=(\
cc configure cvs df diff dig gcc gmake id ip last lsof make mount \
mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \
)
for cmd in ${cmds[@]}; do
alias ${cmd}="command grc -es --colour=auto ${cmd}"
done
}
if is_exec grc; then
colorize
fi
# because fuck you thats' why
fuck() { echo 'no, fuck you'; }