Difference between revisions of "IT-OS-Config-Samer"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(bashrc)
(bashrc)
Line 6: Line 6:
 
<pre class="code">
 
<pre class="code">
 
if [ "$color_prompt" = yes ]; then
 
if [ "$color_prompt" = yes ]; then
     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ '
+
     PS1='[${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]]\n\$ '
 
else
 
else
     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\n\$ '
+
     PS1='[${debian_chroot:+($debian_chroot)}\u@\h:\w]\n\$ '
 
fi
 
fi
 
</pre>
 
</pre>

Revision as of 16:42, 14 December 2019

bashrc

PS1="[\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w]\[\033[00m\]\$ "
PS1="[\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w]\[\033[00m\]`__git_ps1`\n$ "
if [ "$color_prompt" = yes ]; then
    PS1='[${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]]\n\$ '
else
    PS1='[${debian_chroot:+($debian_chroot)}\u@\h:\w]\n\$ '
fi
alias ls='ls -alh'
alias dir='ls -alh'
alias cls='clear'
alias kgn='kc get nodes'
alias kgd='kc get deploy'
alias kgp='kc get pods'
alias kgs='kc get svc'
# ...
alias kdn='kc describe nodes'
alias kdd='kc describe deploy'
alias kdp='kc describe pods'
alias kds='kc describe svc'

Console colors

  • Colour=248,248,242
  • BackgroundColour=40,42,54
  • Black=0,0,0
  • BoldBlack=104,104,104
  • Red=255,85,85
  • BoldRed=255,110,103
  • Green=80,250,123
  • BoldGreen=90,247,142
  • Yellow=241,250,140
  • BoldYellow=244,249,157
  • Blue=202,169,250
  • BoldBlue=202,169,250
  • Magenta=255,121,198
  • BoldMagenta=255,146,208
  • Cyan=139,233,253
  • BoldCyan=154,237,254
  • White=191,191,191
  • BoldWhite=230,230,230

DPI-Resoulation

  • http://dpi.lv/
  • HP-Box: 15.6" @ (1366 x 768) >> 100 DPI
  • HP-Box: 17.3" @ (1366 x 768) >> 91 DPI
xdpyinfo | grep dots