SUSEUnbound
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log in  
openFate
Tips for the CLI junkie in all of us Fatelogo_small openFATE - openSUSE feature tracking
Similar topics
    Latest topics
    » Difference between 42.2 and 42.1
    Tips for the CLI junkie in all of us Emptyby findoctr Thu Dec 15, 2016 7:53 pm

    » openSUSE Leap 42.1 ?
    Tips for the CLI junkie in all of us Emptyby findoctr Fri Feb 05, 2016 8:09 pm

    » Happy Turkey Day
    Tips for the CLI junkie in all of us Emptyby findoctr Thu Nov 26, 2015 1:45 pm

    » Happy 4th of July!
    Tips for the CLI junkie in all of us Emptyby bozo Sat Jul 04, 2015 12:56 pm

    » It's been a while ...
    Tips for the CLI junkie in all of us Emptyby bozo Mon Feb 23, 2015 8:34 pm

    » Mondo chillers
    Tips for the CLI junkie in all of us Emptyby bozo Wed Feb 18, 2015 5:11 am

    Navigation
     Portal
     Index
     Memberlist
     Profile
     FAQ
     Search
    IRC Channel
    You can also find us on IRC's freenode.net as #suseunbound.

     

     Tips for the CLI junkie in all of us

    Go down 
    AuthorMessage
    welan
    Admin
    welan


    Posts : 248
    Join date : 2010-02-23
    Age : 61
    Location : snow drift in minnesota

    Tips for the CLI junkie in all of us Empty
    PostSubject: Tips for the CLI junkie in all of us   Tips for the CLI junkie in all of us EmptyMon Mar 15, 2010 6:10 pm

    Do you live life on the command line, but often forget which terminal is your local box and which is SSH'd into your critical server? There are a number of fixes for this - chiefly, don't be an idiot and look where you are typing first. You might also want to use a different virtual desktop for SSH sessions.
    But perhaps the easiest, most obvious way is to change the terminal prompt. Default prompts on unix systems are usually grey or white on a black background, or sometimes the reverse. How much more obvious can it be that you are somewhere else if your prompt is entirely different, like maybe flashing bold red with some warnings?
    The prompt for almost all shells is included in the PS1 system variable, so we just need to change that to change the prompt. try the following:

    export PS1="\e[48;34m \u@\H:\W\e[m>\$ "

    You can get a list of the escaped characters used to make up the prompt here: www.gnu.org/software/bash/manual/bashref.html#SEC83. Remember to write this to the .bashrc file in your user directory to make it permanent-
    Back to top Go down
     
    Tips for the CLI junkie in all of us
    Back to top 
    Page 1 of 1
     Similar topics
    -
    » PC building tips

    Permissions in this forum:You cannot reply to topics in this forum
    SUSEUnbound :: Help Section :: Tips and Tweaks-
    Jump to: