Update dotfiles/.bashrc
This commit is contained in:
parent
276f126ea1
commit
d05c4407eb
1 changed files with 15 additions and 13 deletions
|
@ -33,21 +33,23 @@ HISTFILESIZE=5000
|
||||||
HISTFILE=~/.local/bash_history
|
HISTFILE=~/.local/bash_history
|
||||||
|
|
||||||
# Prompt (on bash only)
|
# Prompt (on bash only)
|
||||||
if { [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ]; } && [[ "$(hostname)" != *'-minimal' ]]; then
|
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ] || [ "$SHELL" = '/bin/bash' ]; then
|
||||||
# Add new line before prompt
|
if [[ "$(hostname)" != *'-minimal' ]]; then
|
||||||
PROMPT_COMMAND="PROMPT_COMMAND=echo"
|
# Add new line before prompt
|
||||||
|
PROMPT_COMMAND="PROMPT_COMMAND=echo"
|
||||||
|
|
||||||
### Styled Terminal
|
### Styled Terminal
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
xterm* | rxvt* | Eterm | aterm | kterm | gnome* | alacritty)
|
xterm* | rxvt* | Eterm | aterm | kterm | gnome* | alacritty)
|
||||||
PS1="\n \[\033[0;34m\]╭─\[\033[0;31m\]\[\033[0;37m\]\[\033[41m\] $OS_ICON \u \[\033[0m\]\[\033[0;31m\]\[\033[44m\]\[\033[0;34m\]\[\033[44m\]\[\033[0;30m\]\[\033[44m\] \w \[\033[0m\]\[\033[0;34m\] \n \[\033[0;34m\]╰ \[\033[1;36m\]\$ \[\033[0m\]"
|
PS1="\n \[\033[0;34m\]╭─\[\033[0;31m\]\[\033[0;37m\]\[\033[41m\] $OS_ICON \u \[\033[0m\]\[\033[0;31m\]\[\033[44m\]\[\033[0;34m\]\[\033[44m\]\[\033[0;30m\]\[\033[44m\] \w \[\033[0m\]\[\033[0;34m\] \n \[\033[0;34m\]╰ \[\033[1;36m\]\$ \[\033[0m\]"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
### Directory Colors (https://github.com/trapd00r/LS_COLORS)
|
### Directory Colors (https://github.com/trapd00r/LS_COLORS)
|
||||||
command -v gdircolors > /dev/null 2>&1 || gdircolors() { dircolors "$@"; }
|
command -v gdircolors > /dev/null 2>&1 || gdircolors() { dircolors "$@"; }
|
||||||
if command -v gdircolors > /dev/null && [ -f "$HOME/.config/dircolors" ]; then
|
if command -v gdircolors > /dev/null && [ -f "$HOME/.config/dircolors" ]; then
|
||||||
eval "$(gdircolors -b "$HOME/.config/dircolors")"
|
eval "$(gdircolors -b "$HOME/.config/dircolors")"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue