{"id":320,"date":"2019-07-02T14:25:28","date_gmt":"2019-07-02T14:25:28","guid":{"rendered":"https:\/\/silviamarin.ro\/?p=51"},"modified":"2019-07-02T14:25:28","modified_gmt":"2019-07-02T14:25:28","slug":"personalizare-terminal-si-nano-2","status":"publish","type":"post","link":"https:\/\/marinelvis.xyz\/index.php\/2019\/07\/02\/personalizare-terminal-si-nano-2\/","title":{"rendered":"PERSONALIZARE TERMINAL SI NANO"},"content":{"rendered":"<p>Pentru a colora prompt-ul din Terminal:<\/p>\n<p>Pentru utilizatorul <em><strong>user <\/strong>(cursor verde)<\/em>:<\/p>\n<pre>nano .bashrc<\/pre>\n<p>Se decomenteaza <em>force_color_prompt=yes:<\/em><\/p>\n<blockquote><p><em><span style=\"color: #ff0000;\"># uncomment for a colored prompt, if the terminal has the capability; turned<\/span><\/em><br \/>\n<em><span style=\"color: #ff0000;\"># off by default to not distract the user: the focus in a terminal window<\/span><\/em><br \/>\n<em><span style=\"color: #ff0000;\"># should be on the output of commands, not on the prompt<\/span><\/em><br \/>\n<em>force_color_prompt=yes<\/em><\/p><\/blockquote>\n<p>Culoarea implicita este verde. Modificarea culorii se face inlocuind &#8222;32&#8221; cu alta valoare:<\/p>\n<pre>PS1=........\"\\[\\033[01;32m\\]\\u@\\h:\\w\\$\"<\/pre>\n<blockquote><p><em>Codul culorilor:<\/em><br \/>\n<em>Negru: 30<\/em><br \/>\n<em>Albastru: 34<\/em><br \/>\n<em>Cyan: 36<\/em><br \/>\n<em>Verde: 32<\/em><br \/>\n<em>Purpuriue: 35<\/em><br \/>\n<em>Rosu: 31<\/em><br \/>\n<em>Alb: 37<\/em><br \/>\n<em>Galben: 33<\/em><\/p><\/blockquote>\n<p>Pentru utilizatorul <em><strong>root<\/strong><\/em>:<\/p>\n<pre>cd \/root\nnano .bashrc<\/pre>\n<p>Se inlocuieste cu continutul urmator:<\/p>\n<blockquote><p><em># ~\/.bashrc: executed by bash(1) for non-login shells.<\/em><br \/>\n<em># Note: PS1 and umask are already set in \/etc\/profile. You should not<\/em><br \/>\n<em># need this unless you want different defaults for root.<\/em><br \/>\n<em>PS1=&#8217;${debian_chroot:+($debian_chroot)}\\[\\033[01;31m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ &#8216;<\/em><br \/>\n<em># umask 022<\/em><br \/>\n<em># You may uncomment the following lines if you want `ls&#8217; to be colorized:<\/em><br \/>\n<em>export LS_OPTIONS=&#8217;&#8211;color=auto&#8217;<\/em><br \/>\n<em>eval &#8222;`dircolors`&#8221;<\/em><br \/>\n<em>alias ls=&#8217;ls $LS_OPTIONS&#8217;<\/em><br \/>\n<em>alias ll=&#8217;ls $LS_OPTIONS -l&#8217;<\/em><br \/>\n<em>alias l=&#8217;ls $LS_OPTIONS -lA&#8217;<\/em><br \/>\n<em>#<\/em><br \/>\n<em># Some more alias to avoid making mistakes:<\/em><br \/>\n<em># alias rm=&#8217;rm -i&#8217;<\/em><br \/>\n<em># alias cp=&#8217;cp -i&#8217;<\/em><br \/>\n<em># alias mv=&#8217;mv -i<\/em><\/p><\/blockquote>\n<p>Apoi Ctrl+o si Ctrl+x<br \/>\nPentru afisarea numarului liniilor si coloanelor:<\/p>\n<pre>nano \/etc\/nanorc<\/pre>\n<p>Se elimina # din fata # set constantshow<\/p>\n<blockquote><p><em>## Constantly display the cursor position in the statusbar.\u00a0 Note that<\/em><br \/>\n<em>## this overrides &#8222;quickblank&#8221;.<\/em><br \/>\n<em># set constantshow<\/em><br \/>\n<em>set constantshow<\/em><br \/>\n<em>## (The old form, &#8216;const&#8217;, is deprecated.)<\/em><\/p><\/blockquote>\n<p>Apoi Ctrl+o si Ctrl+x<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pentru a colora prompt-ul din Terminal: Pentru utilizatorul user (cursor verde): nano .bashrc Se decomenteaza force_color_prompt=yes: # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-fara-categorie"],"_links":{"self":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":0,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marinelvis.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}