User Tools

Site Tools


wiki:cmds:bashrc

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:cmds:bashrc [2021/11/07 20:27] – created cleitonwiki:cmds:bashrc [2021/11/10 00:00] (current) cleiton
Line 1: Line 1:
 +====== Alterando variável PS1 do bash ======
  
 Verificando a variável PS1: Verificando a variável PS1:
Line 41: Line 41:
   PS1="\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] "   PS1="\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] "
  
-  PS1="\[\033[01;32m\]┌──[\u@\h\[\033[01;37m\] \w\[\033[01;32m\]]\n└─[$]\[\033[00m\] "+  PS1="\[\033[01;32m\]┌──[\u@\h\[\033[01;37m\] \w\[\033[01;32m\]]\n└─$\[\033[00m\] "
  
 PS1-root: PS1-root:
Line 47: Line 47:
   PS1="\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] "   PS1="\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] "
  
-  PS1="\[\033[01;31m\]┌──[\u💀\h\[\033[01;36m\] \w\[\033[01;31m\]]\n└─[#]\[\033[00m\] "+  PS1="\[\033[01;31m\]┌──[\u💀\h\[\033[01;36m\] \w\[\033[01;31m\]]\n└─#\[\033[00m\] "
  
 Referência completa sobre os valores possíveis. Referência completa sobre os valores possíveis.
Line 84: Line 84:
 </code> </code>
  
-Para aplicar definitivo altere a variável no arquivo /home/seu_user/.bashrc+Para aplicar definitivo altere a variável no arquivo ''/home/seu_user/.bashrc''
wiki/cmds/bashrc.1636316858.txt.gz · Last modified: 2021/11/07 20:27 by cleiton

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki