Changing colors listed in ls-FGa

Something odd happened when using Terminal Homebrew. The Directories were showing up in a bright color. However, I do not remember doing anythingh via ls-color, no changes to my .profile etc.  When I changed it back to default, the bright color was gone, and the nasty, hard to see dark blue was back.
I sort of thought that I had done it via preferences but I simply do not remember what I did. It's heck being 67 with ADD, I suppose.
I am using an old Mac G5, and a new Macbook Pro.
Also, there is no .bashrc that I can find.  I had thought there was always one of those??
I appreciate your help,
trav

Not knowing what "Terminal Homebrew" is, I cannot directly address whether or not "Terminal Homebrew" allows customizing your standard Black, Red, Green, Yellow, Blue, Magenta, Cyan, White colors, However, I know you can customize the colors in Mac OS X Applications -> Utilities -> Terminal, and I can also do this with the iTerm or iTerm2  terminal emulators.
If changing your "Terminal Homebrew" settings back to default, corrected the problem, then it would either something you accidentally did to the "Terminal Homebrew" preferences, or the code is not stable, and it stepped on its own preferences for you   Not knowing anything about "Terminal Homebrew" I do not know how mature the code base is.  I personally use iTerm and iTerm2 which has been around for a long time.  I could most likely switch back to the Mac OS X Terminal app, as it has many of the iTerm/iTerm2 features I like these days, but old habits live on, so I continue to what I have been using.
If you like the color shades, but do not like what colors are associated with different file types, you can  define your own LSCOLORS environment variable as per "man ls".
export LSCOLORS="AbadacbfexheagBedeAbAb"
This of couse would be best stored in your .bash_profile (or .bash_login (or .profile)).  Since you said you changed the "Terminal Homebrew" to it defaults, I assume the color change was not related to LSCOLORS.
With respect to .bashrc.  By default your home directory does not contain any shell initialization files for any flavor shell you like using (bash being the current Mac OS X default).
Bash initialization shell rules are spelled out in "man bash", but in brief, when you first create a terminal session (what looks like a login to the shell), bash will look for and execute the first one of the following found:
.bash_profile
.bash_login
.profile
Once you have an active Terminal session, if you create a subshell, bash will look for and execute the .bashrc initialization file.
If none of the above file exist bash will not complain.
If you want the .bashrc initialization script executed when you start a terminal session, you MUST source it from your .bash_profile (or .bash_login (or .profile)).
There are also global bash initialization files in /etc/ that may be executed, however, for a typical Mac  users, it is best to leave them along, as they could be replaced during a system upgrade, or it is something easily forgotten when migrating to a new Mac, where as most people do remember to bring along the contents of their home directory.
With respect to being 67, many of the better contributers in these forums are not spring chickens either

Similar Messages

  • How to change color of selected label from list of labels?

    My Problem is that I have a list of labels. RowHeaderRenderer is a row header renderer for Jtable which is rendering list items and (labels).getListTableHeader() is a method to get the list. When we click on the label this code is executed:
    getListTableHeader().addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
    if (e.getClickCount() >= 1)
    int index = getListTableHeader().locationToIndex(e.getPoint());
    try
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    AcknowledgeEvent ackEvent = new AcknowledgeEvent(
    this, (ae_AlertEventInfo)theAlerts.values().toArray()[index]);
    fireAcknowledgeEvent(ackEvent);
    ((HeaderListModel)listModel).setElementAt(ACK, index);
    catch(Exception ex) {;}
    Upon mouse click color of the label should be changed. For some period of time ie. Upto completion of fireAcknowledgeEvent(ackEvent);
    This statement is calling this method:
    public void handleAcknowledgeEvent(final AcknowledgeEvent event)
    boolean ackOk = false;
    int seqId = ((ae_AlertEventInfo)event.getAlertInfo()).sequenceId;
    if (((ae_AlertEventInfo)event.getAlertInfo()).ackRequiredFlag)
    try
    // perform call to inform server about acknowledgement.
    ackOk = serviceAdapter.acknowledge(seqId,
    theLogicalPosition, theUserName);
    catch(AdapterException aex)
    Log.error(getClass(), "handleAcknowledgeEvent()",
    "Error while calling serviceAdapter.acknowledge()", aex);
    ExceptionHandler.handleException(aex);
    else
    // Acknowledge not required...
    ackOk = true;
    //theQueue.buttonAcknowledge.setEnabled(false);
    final AlertEventQueue myQueue = theQueue;
    if (ackOk)
    Object popupObj = null;
    synchronized (mutex)
    if( hasBeenDismissed ) { return; }
    // mark alert event as acknowledged (simply reset ack req flag)
    ae_AlertEventInfo info;
    Iterator i = theAlerts.values().iterator();
    while (i.hasNext())
    info = (ae_AlertEventInfo) i.next();
    if (info.sequenceId == seqId)
    // even if ack wasn't required, doesn't hurt to set it
    // to false again. But it is important to prevent the
    // audible from playing again.
    info.ackRequiredFlag = false;
    info.alreadyPlayed = true;
    // internally uses the vector index so
    // process the queue acknowledge update within
    // the synchronize block.
    final ae_AlertEventInfo myAlertEventInfo = event.getAlertInfo();
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.acknowledge(myAlertEventInfo);
    myQueue.updateAcknowledgeButtonState();
    // here we should stop playing sound
    // if it is playing for this alert.
    int seqId1;
    if (theTonePlayer != null)
    seqId1 = theTonePlayer.getSequenceId();
    if (seqId1 == seqId)
    if (! theTonePlayer.isStopped())
    theTonePlayer.stopPlaying();
    theTonePlayer = null;
    // get reference to popup to be dismissed...
    // The dismiss must take place outside of
    // the mutex... otherwise threads potentially
    // hang (user hits "ok" and is waiting for the
    // mutex which is currently held by processing
    // for a "move to summary" transition message.
    // if the "dismiss" call in the transition
    // message were done within the mutex, it might
    // hang on the dispose method because the popup
    // is waiting for the mutex...
    // So call popup.dismiss() outside the mutex
    // in all cases.
    if(event.getSource() instanceof AlertEventPopup)
    popupObj = (AlertEventPopup)event.getSource();
    else
    popupObj = thePopups.get(event.getAlertInfo());
    thePopups.remove(event.getAlertInfo());
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    // search vector elements to determine icon color in main frame
    String color = getColor();
    fireUpdateEvent(new UpdateEvent(this, blinking, color));
    // Call dismiss outside of the mutex.
    if (popupObj !=null)
    if(popupObj instanceof AlertEventPopup)
    ((AlertEventPopup)popupObj).setModal(false);
    ((AlertEventPopup)popupObj).setVisible(false); // xyzzy
    ((AlertEventPopup)popupObj).dismiss();
    else
    // update feedback... ack failed
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.setInformationMessage("Acknowledge failed to reach server... try again");
    return;
    Code for RowHeaderRenderer is:
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
    JTable theTable = null;
    ImageIcon image = null;
    RowHeaderRenderer(JTable table)
    image = new ImageIcon(AlertEventQueue.class.getResource("images" + "/" + "alert.gif"));
    theTable = table;
    JTableHeader header = table.getTableHeader();
    setOpaque(true);
    setHorizontalAlignment(LEFT);
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    public Component getListCellRendererComponent( JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus)
    int level = 0;
    try
    level = Integer.parseInt(value.toString());
    catch(Exception e)
    level = 0;
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    this.setHorizontalAlignment(JLabel.CENTER);
    this.setVerticalAlignment(JLabel.CENTER);
    setIcon(image);
    else
    setBorder(BorderFactory.createLineBorder(Color.gray));
    setText("");
    setIcon(null);
    return this;
    I tried but when i am clicking a particular label, the color of all labels in the List is being changed. So can you please assist me in changing color of only the label that is selected and the color must disappear after completion of Upto completion of fireAcknowledgeEvent(ackEvent);

    im a bit confused with the post so hopefully this will help you, if not then let me know.
    I think the problem is that in your renderer your saying
    setBackground(header.getBackground());which is setting the backgound of the renderer rather than the selected item, please see an example below, I created a very simple program where it adds JLabels to a list and the renderer changes the colour of the selected item, please note the isSelected boolean.
    Object "value" is the currentObject its rendering, obviously you may need to test if its a JLabel before casting it but for this example I kept it simple.
    populating the list
    public void populateList(){
            DefaultListModel model = new DefaultListModel();
            for (int i=0;i<10;i++){
                JLabel newLabel = new JLabel(String.valueOf(i));
                newLabel.setOpaque(true);
                model.addElement(newLabel);           
            this.jListExample.setModel(model);
            this.jListExample.setCellRenderer(new RowHeaderRenderer());
        }the renderer
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
        JTable theTable = null;
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus){
            JLabel aLabel = (JLabel)value;
            if (isSelected){
                aLabel.setBackground(Color.RED);
            }else{
                aLabel.setBackground(Color.GRAY);
            return aLabel;       
    }

  • Change color of List link

    Hi,
    I'm trying to change the color of the links in one of my Lists. Can somebody please tell me how to do this? I'm not sure where to put it or what the syntax is.
    Thanks,
    Nora

    Take a look at:
    Change color of row links
    Basically, create a class for your links and change the attributes using the :link,:visited,and :hover pseudo-classes. Even better, apply a class to the UL element, such as "myList" then add the following to your css:
    ul.myList li a:link,ul.myList li a:visited{color:#00ff00;text-decoration:none;}
    ul.myList li a:link,ul.myList li a:hover{color:#ff0000;text-decoration:underline;}
    That way you don't have to repeat the 'class=".." ' for every link in your li, thus reducing the size of the page.
    Thanks,
    Tyler

  • Change color on a row in list

    Hi,
    I want to change color on my lists rows with buttons (look att the picture) i want to be abel to choose more then 1 item and change the color on all that is marked and i want to do this with javascript :)

    Hi,
    JSLink would be a more recommended way in SharePoint 2013 for your requirement.
    The links below would be helpful for you to get a quick start:
    http://www.rbradbrook.co.uk/blog/2013/04/14/introduction-to-client-side-rendering-in-sharepoint-2013/
    http://www.learningsharepoint.com/2013/04/13/sharepoint-2013-js-link-tutorial/
    http://www.martinhatch.com/2013/08/jslink-and-display-templates-part-5-creating-custom-list-views.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Change Bullet List Color

    I know I've seen and done this before, but spacing at the moment. How do I change the color of a bulleted list? Text is fine, I need the bullets themselves to change color.
    Thanks,
    Andrew

    That's my preferred way. But you can do it with CSS, albeit a kludge -
    ul { color:red; }
    ul li span { color:black; }
    list 1
    list 2
    list 3
    This will give you red bullets and black text.
    Murray

  • How can I permanently change color of junk mail listing to black?

    How can I permanently change color of my junk mail listings? It is light brown and difficult to read.

    I'm trying to do the same...no problem choosing the color, but when I used an advanced rule, I no longer have the option in a drop down menu to "erase junk mail". Seems like any combination of an advanced junk mail rule wipes out the option to erase junk mail, and I don't want mail to automatically delete my junk email. I tried outting a stop evaluating after the text color, but that didn't work.
    OSX 10.7.5 late 2006 MacBook Pro

  • Images Change Colors between monitors while the UI stays the same

    Hey! Im having an issue where photoshop changes the colors when I move the window between my monitors, seen here: http://sta.sh/04y5s60vf3j This isnt due to the monitors themselves being different, it actually changes after a few seconds of moving it inbetween the monitors. The left one has been callibrated with a spyder 3 elite which I no longer have access to. I applied the file with windows color management instead of the spyder utility. The second one is new, and it is not callibrated by anything, but instead was done by hand with the built in brightness/contrast/custom RGB settings. Both of them are very close to eachother, enough so for my tastes. but when photoshop changes what the image looks like, it's causing problems. Interestingly enough, when I disable callibration for the monitor on the left, the image does not change colors between monitors, but instead always appears as it does on the right. but then they don't match up and the whole screen looked washed out because it's uncallibrated, so that doesnt do me any good. Another interesting thing to point out, is when this image is saved as a .JPG, and viewed with firefox the image appears exactly like the monitor on the LEFT (which is my main monitor) despite the left monitor being the one that is force changed. does anyone have any suggestions? It also appears that windows photoviewer is behaving the same way, though firefox does not. Meaning when I open an image in all 3 on the left monitor, they look the same, but when opened on the right monitor, windows photo viewer and photoshop both display the image as brighter and redder than firefox does. This is frustrating, because it seems photoshop is changing the image with my callibration on my left monitor to match what it looks like on the web, which it does. but it doesn't do this for the right monitor, or when the left is uncallibrated. Another issue I can see with this is even if the UI is the same shade of gray, the images are different between the monitors because of this change. Does anyone have any suggestions?
    - BD

    Alright! So I reread through all this, poked at some things on the internet, and I'm going to attempt to summarize what would be a good solution for all this (And it seems, it still won't be perfect, but to get myself into the best environment I can for not messing with images for an hour trying to make them look nice before I post them to the web. I painted something yesterday on the cintiq, popped it over to my laptop screen and it just looked washed out and terrible.)
    1. Get a X-rite EODIS3 i1 Display Pro, Callibrate laptop and cintiq. I do have the money to drop on something like this, especially if it's a time saver.
         Things I'm not sure about:
              a. There was a ton of complaints about the software not working when I checked reviews, but also a ton that said everything was great. most of them were mac users though.
              b. I'm not sure if problems would still be posed, even while calibrated, by me having a wide gamut monitor.
              c. I'm a terrible excuse for a human being and I think the colors showing up brighter on the wide gamut screen is pretty (I should just make my images this bright on a normal screen and there won't be any issues. >.>)
    2. Set Firefox to color manage (easy enough)
    3. Change my photoshop working space to sRGB (since they'll have been calibrated at this point)
    3. Accept the fact that most of the people who look at my work will be doing so on a monitor that is almost certainly uncalibrated, and I can't control what they will see on my screen, but I CAN control if the colors are -actually- what I want them to be on any properly calibrated device. which is probably the best way to go anyways.
    4. Make paintings, have fun.
    Now, you two have been going on about all sorts of interesting things in here, and it seems that calibration issue run much much deeper than I ever thought. Do either of you have recommendations for how I should tweak this list of things to do or other things I can/ should do? I'm not currently a working professional, but if I have anything to say about it, I will be within a few years (I'm going to school for illustration and studying concept design on my own time) so it'd be useful for me to get into good habits now.
    - Brendavid

  • How do i get my events to change colors when i add new ones in my calendar

    How do I get my events to change colors when I add a new event in my calendar?

    When you add an event and you see the heading "Calendar", do you see a name to the right of it such as "Work"?  If you tap on the heading "Calendar" does it show you a list of calendars?
    I'm basing this on my experience using iCal on a Mac to sync with my iPad.  I created a number of calendars on the Mac and assigned them different colors.  Those appear on my iPad.  I don't know how to create additional calendars on the iPad alone - I must create them in iCal or MobileMe then they show up on the iPad.  Are you using a Mac or MobileMe?

  • How do I get a field to automatically select a value and change color based on another automatic field?

    Here is the situation:
    I have a row on a form called Finding Risk Rating. In this row are four fields: Probability, Severity, Risk Rating, Color.
    Probability is a drop down menu with the following values: 1, 2, 3, 4, 5
    Severity is a drop down menu with the following values: A, B, C, D, E
    Risk Rating is a field that I have a custom calculation script:
    var riskRating = this.getField("Probability").value+this.getField("Severity").value;
    event.value = riskRating;
    So, when I pick Probability = 1 and Severity = D, Risk Rating will automatically change to 1D, etc. This works fine on the surface as far as I can tell.
    The part where I am stuck, is the fourth field Color.
    Ideally, I want Color to be automatically populated depending on the value of Risk Rating. For example, for 1E I would want it to say "YELLOW" and the field to change color to yellow. For 1A it would be "GREEN" with the color green, etc.
    I tried doing an if else for all cases, but it never refreshes to the correct value. I then checked using app.alert to see what fields riskRating and colorRank are (see code below), and I noticed that riskRating never changes, even though the value in Risk Rating changes. Is there a way to order script(s) so that if I execute one, the other will follow? I'm new to scripting for forms and haven't done any programming in 10+ years, so feel free to rip my code in favor or something more efficient, or direct me to a good resource I can learn from.
    Here's the basis of what I have for scripting on Color. It's brief because I wanted to test it out before writing every 'if else' statement.
    var colorRank;
    var riskRating = this.getField("Risk Rating").value;
    if (riskRating = "1E") colorRank = "YELLOW";
    else if (riskRating = "1A") colorRank = "GREEN";
    else if (riskRating = "5A") colorRank = "RED";
    event.value = colorRank;
    app.alert("colorRank = " + colorRank + ", riskRating = " + riskRating);
    Any help is appreciated. Thanks!

    One problem is if more than one combo box item has the same number associated with it, you cannot simply set the export value to the corresponding number since they need to be unique (or the user interface behaves weird). One thing you can do is set up an object to associate a list item with a value, and look up the value in code when a list item is selected.
    For more information, see: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle

  • Why do eBay item listings no longer change colors after being viewed?

    Need some help with a problem – in the past, when I opened a specific listing on eBay, it changed color from blue to red when I got back out of the listing. As of late, they do not change and remain blue. As I do 20-30 music title searches daily, the color change was a real time saver as I could tell immediately when I had begun yesterday’s search as it was now red. Without the color change, I have to pay much more attention and invariably end up searching beyond that point until I realize it. Do you have any idea how I can get back to the color change? Any help would be much appreciated.
    Many thanks!

    I've seen more posts from people that also have this issue with visited links while using the Back button, so this behavior may be a regression and caused by using the cache more aggressively.
    Does opening the link in a new tab work to show the visited state of links?

  • How to change colors in Color Ramps

    Hello,
    I would like to use Color Ramps, and I need to change colors. In help documents, it say that I juste have to right click in the icon and change what I want. But I tried all option and I can't do anything I want.
    Can you help me ??
    Thanks
    David

    Seems that I'm not the only one to have problems with color ramps...
    Nearly everything was explained in the on-line help. Nearly...
    "Complete the following steps to change the colors of a color ramp.
    1. Right-click the color ramp or a marker and select Marker Spacing»Arbitrary from the shortcut menu to switch the color ramp to arbitrary marker spacing.
    2. Use the Operating or Positioning tools to right-click the marker next to the color ramp and select Marker Color from the shortcut menu to change the color associated with a marker.
    3. Select the color you want from the color picker that appears."
    Additionnal hints :
    After switching to arbitrary marker spacing, suppress all intermediate markers (right click> Delete). Then adjust the colors of th
    e two remaining end markers. With some ramps, you will be obliged to move slighty the marker position to get a color update.
    If you need to insert intermediate colors, add intermediate markers (right click > Add). Using the text tool, type in the exact value associated with the marker. Select the color you want to associate with the marker.
    When finished, switch back to uniform marker spacing.
    Have fun...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How to change color of an annotation on PDF with VBA

    hi
    i 'm not sure i'm at the good place and i even don't know if it's posible
    on one side
    i'm using acrobat pro 9 to make square on industrial plan (P&ID).
    square are red or green in fonction of theire status.
    on the other side
    i'm using excel to list all equipement  and theire status that should be notify on my DPF
    i would like a macro on excel that check all statuts and give the good color to the square refering to the equipment listed on excel?
    thx

    Greatestdan wrote:
    I know there should be some way to change the colors of just specific areas of text like this. It should be as simple as putting a color code at the start and end of the tag like
    <div><color="#FF0000">This text should be RED</color></div>
    I tried that and it came up with the error "Invalid Markup, This is not the correct format for an HTML tag."
    I am about 99% certain you can change colors of specific div tags using color codes without giving them an Id and making a css rule for them, I just don't know how. This is a simple question and it should be a simple answer.
    Correct:
    <div style="color: #ff0000;">This text should be RED</div>

  • Change colors to all components in a consistent way

    Is there a way to change color to all components of an application (or of a JFrame), such as all JButtons backgrounds, JFrame backgrounds etc.?
    I suppose i've to deal with UIManager defaults, but is there some facility, or some check-list to help achieve this task?.
    Thanks in advance
    Agostino

    Check out my ComponentMapper class. You could do it with this by running the mapper on the contentpane (and potentially the JMenuBar too if you like)
    You are welcome to use and modify this code but please don't change the package or take credit for it as your own work
    tjacobs.util.ComponentMapper
    ======================
    package tjacobs.util;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.TextComponent;
    import javax.swing.JFileChooser;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.text.JTextComponent;
    public class ComponentMapper {
         public static interface MappedFunc {
              public void func(Component c);
         public static void map(Component c, MappedFunc func) {
              func.func(c);
              if (c instanceof Container) {
                   Container con = (Container)c;
                   int count = con.getComponentCount();
                   for (int i = 0; i < count; i++) {
                        map(con.getComponent(i), func);
         public static void main(String[] args) {
              JFileChooser fc = new JFileChooser();
              MappedFunc mf = new MappedFunc() {
                   public void func(Component c) {
                        if (c instanceof JTextComponent) {
                             System.out.println("found");
                             final JTextField tf = ((JTextField)c);
                             tf.setEditable(false);
                             tf.getDocument().addDocumentListener(new DocumentListener() {
                                  public void insertUpdate(DocumentEvent de) {
                                       Runnable r = new Runnable() {
                                            public void run() {
                                                 tf.setText("");
                                       SwingUtilities.invokeLater(r);
                                  public void removeUpdate(DocumentEvent de) {
                                  public void changedUpdate(DocumentEvent de) {
                             while (c != null) {
                                  System.out.println(c.getClass());
                                  c = c.getParent();
                             //disable the textfield
              map(fc, mf);
              fc.showSaveDialog(null);
    }

  • Changing colors

    How can I change color of the text and background of components like Output Text, Buttons etc?

    Thank you guys.
    However I have a few questions:
    1.How do I know what visual attributes each component has? Where can I intutively know that, e.g. a button has a color, background-color and all the other visual attributes? - basically where is the documentation for all this?
    2. How come I cannot edit these colors thru a "Graphical" color editor? ( This is what I need in the first place - not editing text in the stylesheet etc..
    3. If the colors are refered to by names, where is the list of well known color names( constants?).
    4. How do I set colors which have very specific r-g-b values ? Obviously this cannot be specified by a named constant.
    5. How do I set the color to transparent? ( i.e. how do I control the alpha component of the color? )
    This is also not possible using the only instance of graphical color editor I found ( to set the Background color of the Page ).
    The fact that color goes into the style property as a text string invalidates Visual design time experience by making an obvious property non obvious ( How would I know the color goes in Style?) and making changing it non intuitive - I have to remember color names and constants instead of seeing and selecting.
    I hope UI design team take a look at this in terms of design priciples and not just provide a workaround.

  • Changing color of arrow button in JComboBox

    Hi all,
    Can somebody please help me to change the color of arrow button in JComboBox

    The default color uses to draw the arrow is UIManager.getColor("controlShadow"), so if you put a different color there, that would be used for the arrow buttons. Of course, that color is likely used other places as well, and so any other place where it is used would get your changed color too. For example, the scrollbar buttons for the scrollbar in the popup list would likely use that color.
    Further, the current look and feel can override this; for example, the Metal L&F creates its own button, which uses its own icon which ends up using a hard-coded color of black when painting the arrow.
    : jay

Maybe you are looking for