mirror of
https://github.com/dustinkirkland/byobu
synced 2025-07-05 20:42:10 -07:00
export PS1
+ +
This commit is contained in:
parent
a4af10201f
commit
d670c33554
2 changed files with 11 additions and 4 deletions
9
debian/changelog
vendored
9
debian/changelog
vendored
|
@ -1,3 +1,10 @@
|
|||
byobu (6.6) jammy; urgency=medium
|
||||
|
||||
* usr/share/byobu/profiles/bashrc:
|
||||
- export PS1
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Jan 2024 13:04:22 -0600
|
||||
|
||||
byobu (6.5) released; urgency=medium
|
||||
|
||||
* usr/share/byobu/profiles/bashrc:
|
||||
|
@ -6,7 +13,7 @@ byobu (6.5) released; urgency=medium
|
|||
* usr/bin/byobu-shell.in:
|
||||
- need a -l login shell to source profiles and colorize PS1
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 09 Jan 2024 07:32:57 -0600
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Jan 2024 13:04:06 -0600
|
||||
|
||||
byobu (6.4) released; urgency=medium
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ byobu_prompt_symbol() { [ "$USER" = "root" ] && printf "%s" "#" || printf "%s" "
|
|||
case "$BYOBU_DISTRO" in
|
||||
"Ubuntu")
|
||||
# Use Ubuntu colors (grey / orange / aubergine)
|
||||
PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$(byobu_prompt_status)\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;172m\]\h\[\e[00m\]:\[\e[38;5;5m\]\w\[\e[00m\]\$(byobu_prompt_symbol) "
|
||||
export PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$(byobu_prompt_status)\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;172m\]\h\[\e[00m\]:\[\e[38;5;5m\]\w\[\e[00m\]\$(byobu_prompt_symbol) "
|
||||
export GREP_COLORS="ms=01;38;5;202:mc=01;31:sl=:cx=:fn=01;38;5;132:ln=32:bn=32:se=00;38;5;242"
|
||||
export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode – red
|
||||
export LESS_TERMCAP_md=$(printf '\e[01;38;5;180m') # enter double-bright mode – bold light orange
|
||||
|
@ -50,10 +50,10 @@ case "$BYOBU_DISTRO" in
|
|||
# For reference: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg
|
||||
# Convert hex to 256: https://gist.githubusercontent.com/MicahElliott/719710/raw/73d047f0a3ffc35f0655488547e7f24fa3f04ea6/colortrans.py
|
||||
# Use Wolfi colors (pink=170 / purple=98 / blue=63); flashing error code on previous command non-zero exit
|
||||
PS1="\[\e[03;5;15;54m\]\$(byobu_prompt_status)\[\e[00m\]\[\e[38;5;170m\]\u\[\e[00m\]@\[\e[38;5;98m\]\h\[\e[00m\]:\[\e[38;5;63m\]\w\[\e[00m\]\$(byobu_prompt_symbol) "
|
||||
export PS1="\[\e[03;5;15;54m\]\$(byobu_prompt_status)\[\e[00m\]\[\e[38;5;170m\]\u\[\e[00m\]@\[\e[38;5;98m\]\h\[\e[00m\]:\[\e[38;5;63m\]\w\[\e[00m\]\$(byobu_prompt_symbol) "
|
||||
;;
|
||||
*)
|
||||
# Use Googley colors (blue / red / yellow / blue / green / red )
|
||||
PS1="${debian_chroot:+($debian_chroot)}\[\e[31m\]\$(byobu_prompt_status)\[\e[38;5;69m\]\u\[\e[38;5;214m\]@\[\e[38;5;167m\]\h\[\e[38;5;214m\]:\[\e[38;5;71m\]\w\[\e[38;5;214m\]\$(byobu_prompt_symbol)\[\e[00m\] "
|
||||
export PS1="${debian_chroot:+($debian_chroot)}\[\e[31m\]\$(byobu_prompt_status)\[\e[38;5;69m\]\u\[\e[38;5;214m\]@\[\e[38;5;167m\]\h\[\e[38;5;214m\]:\[\e[38;5;71m\]\w\[\e[38;5;214m\]\$(byobu_prompt_symbol)\[\e[00m\] "
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue