mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
chore(.bashrc): fix ===
This commit is contained in:
parent
55343c49a9
commit
1496e7ec03
1 changed files with 10 additions and 10 deletions
20
.bashrc
20
.bashrc
|
|
@ -5,7 +5,7 @@ xhost +local:root > /dev/null 2>&1
|
||||||
|
|
||||||
use_fish=true
|
use_fish=true
|
||||||
|
|
||||||
# ==================== PATHS ====================
|
# ===================== PATHS =====================
|
||||||
if [ -d "$HOME/bin" ] ; then
|
if [ -d "$HOME/bin" ] ; then
|
||||||
export PATH="$HOME/bin:$PATH"
|
export PATH="$HOME/bin:$PATH"
|
||||||
export PATH="$HOME/bin/scripts:$PATH"
|
export PATH="$HOME/bin/scripts:$PATH"
|
||||||
|
|
@ -36,7 +36,7 @@ then
|
||||||
exec fish
|
exec fish
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ==================== COLORS ====================
|
# ===================== COLORS =====================
|
||||||
|
|
||||||
use_color=true
|
use_color=true
|
||||||
|
|
||||||
|
|
@ -52,7 +52,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 +64,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 +75,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
|
||||||
|
|
@ -85,7 +85,7 @@ fi
|
||||||
|
|
||||||
unset use_color safe_term match_lhs sh
|
unset use_color safe_term match_lhs sh
|
||||||
|
|
||||||
# ==================== Settings ====================
|
# ===================== Settings =====================
|
||||||
|
|
||||||
# Sudo autocompletiong
|
# Sudo autocompletiong
|
||||||
complete -cf sudo
|
complete -cf sudo
|
||||||
|
|
@ -94,7 +94,7 @@ shopt -s checkwinsize
|
||||||
shopt -s expand_aliases
|
shopt -s expand_aliases
|
||||||
shopt -s autocd
|
shopt -s autocd
|
||||||
|
|
||||||
# ==================== ANACONDA ====================
|
# ===================== ANACONDA =====================
|
||||||
|
|
||||||
# >>> conda initialize >>>
|
# >>> conda initialize >>>
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
# !! Contents within this block are managed by 'conda init' !!
|
||||||
|
|
@ -112,7 +112,7 @@ unset __conda_setup
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
|
||||||
# ==================== BASH_IT ====================
|
# ===================== BASH_IT =====================
|
||||||
|
|
||||||
# History
|
# History
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
|
|
@ -125,14 +125,14 @@ export HISTCONTROL=ignoredups:erasedups
|
||||||
HISTSIZE=
|
HISTSIZE=
|
||||||
HISTFILESIZE=
|
HISTFILESIZE=
|
||||||
|
|
||||||
# ==================== AUTOCOMPLETION ====================
|
# ===================== AUTOCOMPLETION =====================
|
||||||
|
|
||||||
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
||||||
source /usr/share/fzf/completion.bash
|
source /usr/share/fzf/completion.bash
|
||||||
source /usr/share/fzf/key-bindings.bash
|
source /usr/share/fzf/key-bindings.bash
|
||||||
|
|
||||||
|
|
||||||
# ==================== ALIASES ====================
|
# ===================== ALIASES =====================
|
||||||
alias v="nvim"
|
alias v="nvim"
|
||||||
alias gg="lazygit"
|
alias gg="lazygit"
|
||||||
alias ls="exa --icons"
|
alias ls="exa --icons"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue