User Tools

Site Tools


linux:user:bash_color_256

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:user:bash_color_256 [2021/07/07 08:05] – created stonelinux:user:bash_color_256 [2021/07/07 08:26] (current) stone
Line 3: Line 3:
 Hier ein Beispiel eines bunten Promts mit dem 256 Color Farbschema Hier ein Beispiel eines bunten Promts mit dem 256 Color Farbschema
 <code> <code>
-export PS1="\[\033[38;5;201m\]\u\[\033[38;5;226m\]@\[\033[38;5;82m\]\h\[\033[38;5;15m\]:\[\033[38;5;39m\]\w\[\033[38;5;15m\]\$ "+export PS1="\[\033[38;5;91m\]\u\[\033[38;5;226m\]@\[\033[38;5;82m\]\h\[\033[38;5;201m\]:\[\033[38;5;39m\]\w\[\033[38;5;15m\]\$ "
 </code> </code>
 \\ \\
Line 12: Line 12:
 [38;5;<farbe>m] [38;5;<farbe>m]
   | |   |   | |   |
-        ------- Kann angepasst werden auf die Farbe die man möchte +  | |   |------ Kann angepasst werden auf die Farbe die man möchte 
-    ----------- Muss so bleiben +  | |---------- Muss so bleiben 
-  ------------- Muss so bleiben+  |------------ Muss so bleiben
      
 </code> </code>
 +\\
 +
 +===== Beispiele =====
 +Normale Linux Shell
 +<code>
 +export PS1="\[\033[38;5;82m\]\u\[\033[38;5;82m\]@\[\033[38;5;82m\]\h\[\033[38;5;15m\]:\[\033[38;5;39m\]\w\[\033[38;5;15m\]\$ "
 +</code>
 +\\
 +
 +Root Linux Shell
 +<code>
 +export PS1="\[\033[38;5;160m\]\u\[\033[38;5;82m\]@\[\033[38;5;82m\]\h\[\033[38;5;15m\]:\[\033[38;5;39m\]\w\[\033[38;5;15m\]\$ "
 +</code>
 +\\
 +
 +Raspberry Shell
 +<code>
 +export PS1="\[\033[38;5;201m\]\u\[\033[38;5;82m\]@\[\033[38;5;82m\]\h\[\033[38;5;15m\]:\[\033[38;5;39m\]\w\[\033[38;5;15m\]\$ "
 +</code>
 +\\
 +
 +
 +===== Farbtabelle =====
  
 +{{ :linux:user:uqve5.png?direct&200 |}}
linux/user/bash_color_256.1625645105.txt.gz · Last modified: by stone