mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 11:43:03 +03:00
fix(bashrc): fix ===
This commit is contained in:
parent
f3b697a935
commit
133530c1c0
1 changed files with 15 additions and 3 deletions
18
.bashrc
18
.bashrc
|
|
@ -31,6 +31,18 @@ fi
|
||||||
|
|
||||||
[ -f "/home/pavel/.ghcup/env" ] && source "/home/pavel/.ghcup/env" # ghcup-env
|
[ -f "/home/pavel/.ghcup/env" ] && source "/home/pavel/.ghcup/env" # ghcup-env
|
||||||
|
|
||||||
|
# ===================== PERL =====================
|
||||||
|
|
||||||
|
if [ -d "$HOME/perl5" ] ; then
|
||||||
|
PATH="/home/pavel/perl5/bin${PATH:+:${PATH}}"
|
||||||
|
PERL5LIB="/home/pavel/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
||||||
|
PERL_LOCAL_LIB_ROOT="/home/pavel/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
||||||
|
PERL_MB_OPT="--install_base \"/home/pavel/perl5\""; export PERL_MB_OPT;
|
||||||
|
PERL_MM_OPT="INSTALL_BASE=/home/pavel/perl5"; export PERL_MM_OPT;
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ===================== FISH =====================
|
||||||
|
|
||||||
if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" && ${use_fish} ]]
|
if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" && ${use_fish} ]]
|
||||||
then
|
then
|
||||||
exec fish
|
exec fish
|
||||||
|
|
@ -52,7 +64,7 @@ match_lhs=""
|
||||||
[[ -z ${match_lhs} ]] \
|
[[ -z ${match_lhs} ]] \
|
||||||
&& type -P dircolors >/dev/null \
|
&& type -P dircolors >/dev/null \
|
||||||
&& match_lhs=$(dircolors --print-database)
|
&& match_lhs=$(dircolors --print-database)
|
||||||
[[ $'\n'${match_lhs} === *$'\n'"TERM "${safe_term}* ]] && use_color=true
|
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
|
||||||
|
|
||||||
if ${use_color} ; then
|
if ${use_color} ; then
|
||||||
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
|
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
|
||||||
|
|
@ -64,7 +76,7 @@ if ${use_color} ; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${EUID} === 0 ]] ; then
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
|
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
|
||||||
else
|
else
|
||||||
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
||||||
|
|
@ -75,7 +87,7 @@ if ${use_color} ; then
|
||||||
alias egrep='egrep --colour=auto'
|
alias egrep='egrep --colour=auto'
|
||||||
alias fgrep='fgrep --colour=auto'
|
alias fgrep='fgrep --colour=auto'
|
||||||
else
|
else
|
||||||
if [[ ${EUID} === 0 ]] ; then
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
# show root@ when we don't have colors
|
# show root@ when we don't have colors
|
||||||
PS1='\u@\h \W \$ '
|
PS1='\u@\h \W \$ '
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue