bashrc, zshrc: new prompt; xresources: back to terminus

master
Von Random 3 years ago
parent 4d4f96e22c
commit 2274d523aa
  1. 4
      bashrc
  2. 18
      xresources
  3. 6
      zshrc

@ -22,8 +22,8 @@ prompt_command() {
esac
}
((UID)) && ps_clr=4 || ps_clr=1
# just a colored version of [ $USER@$HOSTNAME ~ ]$
PS1='\[\e[47;30m\][ \[\e[3'"$ps_clr"'m\]\u\[\e[30m\]@\h \[\e[32m\W\[\e[30m\] ]\$\[\e[0m\] '
# just a colored version of [ $USER@$HOSTNAME ~ ]
PS1='\[\e[47;30m\][ \[\e[3'"$ps_clr"'m\]\u\[\e[30m\]@\h \[\e[32m\W\[\e[30m\] ]\[\e[0m\]\n\$ '
unset ps_clr
PROMPT_COMMAND=prompt_command
# }}}

@ -1,14 +1,14 @@
! {{{ xft and cursor configuration, aliases
Xcursor.theme: Vanilla-DMZ-AA
Xft.antialias: true
Xft.lcdfilter: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.hintstyle: hintfull
Xft.dpi: 192
#define TERMINUS -xos4-terminus-bold-*-*-*-14-*-*-*-*-*-iso10646-1
#define TERMINUS -xos4-terminus-bold-*-*-*-18-*-*-*-*-*-iso10646-1
#define TERMINUS_SMALL -xos4-terminus-*-*-*-*-12-*-*-*-*-*-iso10646-1
#define FONT xft:Fantasque Sans Mono:size=11
! solarized light
#define COLORFG #657b83
@ -36,7 +36,10 @@ Xft.dpi: 192
! }}}
! {{{ urxvt
! fonts
URxvt.font: FONT
URxvt.font: TERMINUS
URxvt.boldFont: TERMINUS
URxvt.italicFont: TERMINUS
URxvt.boldItalicFont: TERMINUS
! misc
URxvt.intensityStyles: false
@ -61,6 +64,7 @@ URxvt.keysym.C-C: eval:selection_to_clipboard
! colors
URxvt.foreground: COLORFG
URxvt.colorBD: COLORBD
URxvt.background: COLORBG
URxvt.cursorColor: COLORCR
@ -83,10 +87,9 @@ URxvt.color14: COLOR14
URxvt.color15: COLOR15
! }}}
! {{{ xterm
xterm.termName: xterm-direct
xterm.borderWidth: 0
xterm.vt100.font: FONT
xterm.vt100.colorBDMode: false
xterm.vt100.font: TERMINUS
xterm.vt100.colorBDMode: true
xterm.vt100.allowBoldFonts: false
xterm.vt100.boldColors: false
xterm.vt100.bellIsUrgent: true
@ -97,6 +100,7 @@ xterm.vt100.internalBorder: 1
! colors
xterm.vt100.foreground: COLORFG
xterm.vt100.colorBD: COLORBD
xterm.vt100.background: COLORBG
xterm.vt100.cursorColor: COLORCR

@ -72,8 +72,8 @@ bindkey '^x^e' edit-command-line
# }}}
# {{{ prompt
prompt_state_file="/tmp/zsh_gitstatus_$$.tmp"
prompt_ln1='%K{white}%F{black}[ %F{%(!.red.blue)}%n%F{black}@%m %F{green}%2~%F{black} '
prompt_ln2=']%f%k '
prompt_ln1='%K{white}%F{black}[ %F{%(!.red.blue)}%n%F{black}@%m:%F{green}%d%F{black} '
prompt_ln2=$']%f%k\n> '
PROMPT="$prompt_ln1$prompt_ln2"
PROMPT2='%K{white}%F{black}[ %_ ]%f%k '
PROMPT3='%K{white}%F{black}[ ?# ]%f%k '
@ -130,7 +130,7 @@ precmd.git_update() {
precmd() {
precmd.title
if precmd.is_git_repo; then
precmd.prompt $'\ue0a0 '
precmd.prompt $'\ue0a0 ... '
precmd.git_update &!
else
precmd.prompt

Loading…
Cancel
Save