1
0
Fork 0

source grc rc-file

This commit is contained in:
Von Random 2017-05-22 16:30:13 +03:00
parent faa0dacc0a
commit 35b236612c
2 changed files with 3 additions and 12 deletions

View file

@ -4,6 +4,9 @@ vscripts="${HOME}/vscripts"
completion_path='/usr/share/bash-completion/bash_completion' completion_path='/usr/share/bash-completion/bash_completion'
[[ -r "${completion_path}" ]] && . "${completion_path}" [[ -r "${completion_path}" ]] && . "${completion_path}"
grc_rc='/etc/profile.d/grc.bashrc'
[[ -r "${grc_rc}" ]] && . "${grc_rc}"
# because fuck you thats' why # because fuck you thats' why
fuck() { echo 'no, fuck you'; } fuck() { echo 'no, fuck you'; }

12
bashrc
View file

@ -99,18 +99,6 @@ alias iconvuk='command iconv -c -f utf-8 -t koi8-r'
alias iconvku='command iconv -c -f koi8-r -t utf-8' alias iconvku='command iconv -c -f koi8-r -t utf-8'
alias iconvwu='command iconv -c -f cp1251 -t utf-8' alias iconvwu='command iconv -c -f cp1251 -t utf-8'
# grc
if is_exec grc; then
alias ping='command grc --colour=auto ping'
alias ping6='command grc --colour=auto ping'
alias traceroute='command grc --colour=auto traceroute'
alias traceroute6='command grc --colour=auto traceroute'
alias make='command grc --colour=auto make'
alias diff='command grc --colour=auto diff'
alias cvs='command grc --colour=auto cvs'
alias netstat='command grc --colour=auto netstat'
fi
# ls # ls
alias ls='command ls --color=auto --group-directories-first ' alias ls='command ls --color=auto --group-directories-first '
alias la='ls -FA' alias la='ls -FA'