Browse Source

bash: Одинаковое приглашение командной строки на всех системах

Maxim Likhachev 5 years ago
parent
commit
9c126e1c3e
  1. 13
      etc/shell/bash/bashrc
  2. 11
      etc/shell/bash/bashrc_linux
  3. 2
      etc/shell/bash/bashrc_macos

13
etc/shell/bash/bashrc

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/bash ####################################################################
#
# Изменён: чт 19 дек 2019 20:41:05
# Изменён: вт 18 фев 2020 15:37:12
#
################################################################################
@ -180,6 +180,17 @@ else @@ -180,6 +180,17 @@ else
#export HOME=$HOME
fi
PS1_JOBS="${PROMPT_COLOR}┌─(${yellow}\j${PROMPT_COLOR})"
PS1_HOST="─[${yellow}\h${PROMPT_COLOR}]${PROMPT_SHH}"
PS1_CWD="─[${red}${VIFM_SHELL}${yellow}\w${PROMPT_COLOR}]\n"
PS1_LINE1="${PS1_JOBS}${PS1_HOST}${PS1_CWD}"
PS1_LINE2="${PROMPT_COLOR}─[${PROMPT_COLOR}\t]\$ $rstc"
PS1="${PS1_LINE1}${PS1_LINE2}"
unset PS1_JOBS PS1_HOST PS1_CWD PS1_LINE1 PS1_LINE2
# }}} ##########################################################################
# {{{ Подключение псевдонимов
################################################################################

11
etc/shell/bash/bashrc_linux

@ -16,14 +16,3 @@ path++ /bin:/usr/bin:/usr/local/bin PATH @@ -16,14 +16,3 @@ path++ /bin:/usr/bin:/usr/local/bin PATH
# export LS_COLORS=$($BASHRC/ls_colors_generator.py)
export LS_COLORS=$(cat $BASHRC/ls_colors_generated)
PS1_JOBS="${PROMPT_COLOR}┌─(${yellow}\j${PROMPT_COLOR})"
PS1_HOST="─[${yellow}\h${PROMPT_COLOR}]${PROMPT_SHH}"
PS1_CWD="─[${red}${VIFM_SHELL}${yellow}\w${PROMPT_COLOR}]\n"
PS1_LINE1="${PS1_JOBS}${PS1_HOST}${PS1_CWD}"
PS1_LINE2="${PROMPT_COLOR}─[${PROMPT_COLOR}\t]\$ $rstc"
PS1="${PS1_LINE1}${PS1_LINE2}"
unset PS1_JOBS PS1_HOST PS1_CWD PS1_LINE1 PS1_LINE2

2
etc/shell/bash/bashrc_macos

@ -23,5 +23,3 @@ pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:\ @@ -23,5 +23,3 @@ pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:\
*.c=00;04:*.cpp=00;04:*.pas=00;04:*.ui=00;04:*.sh=00;04:*.py=00;04:*.rb=00;04:\
*.gl=01;35:*.dl=01;35:"
PS1="$PROMPT_COLOR[${yellow}devopc${PROMPT_COLOR}]-(${yellow}\j${PROMPT_COLOR})$PROMPT_SHH-[$yellow\w$PROMPT_COLOR]\n$PROMPT_COLOR[$PROMPT_COLOR\t]\$ $rstc"

Loading…
Cancel
Save