[Solved] How do I get bash to be colorful like in Gentoo?

I know that this isn't Gentoo, so yall don't need to remind me just in case you were thinking about doing that, but I also know that this IS LINUX (sorry that was a 300 reference, you know, "this is Sparta," et cetera, et cetera (Yeah, I know it was unnecessary, but I couldn't help it, the temptation was too tantalizing)) and therefore what bash can do on one Linux Box should be able to happen on, more or less, any Linux Box.
Last edited by Boxes (2011-12-15 04:27:38)

anonymous_user wrote:
To the OP you may be interested in Gentoo's bashrc:
http://www.jeremysands.com/archlinux/ge … hrc-2008.0
Thank you, I tried searching for different kinds of terminals, but I wasn't familiar with any of the one's listed (or at least I wasn't familiar with them by name, though I might have recognized them if I had used them, though I'm not sure) except for the one that I remember having used in ArchBang, which I liked very much because it's terminal showed so much info regarding my system.
Last edited by Boxes (2011-12-15 04:29:58)

Similar Messages

  • How can I get rid of spinning colored balls on my Desktop computer

    How can I get rid of spinning colored balls on my Desktop Mac, it is really bogging down my system.

    I have 1GB RAM, 667Mhz, DDR2-SDRAM, 20 Inch Screen.
    Sorry for lack of info, my first time doing this. I think I have found the problem, non responding App.
    Thank You,
    nhalderson

  • The last few times I imported photos, the backup location was set to "documents" with no sub-folders. How do I get them into sub-folders - like year and month?

    the last few times I imported photos, the backup location was set to "documents" with no sub-folders. How do I get them into sub-folders - like year and month?

    Use the Subfolder pulldown to set the subfolders:

  • How can I get clip art on Pages like MS Word has?

    How can I get clip art on Pages like MS Word has?

    Pages will use any old graphics, of which there are bucket loads on the internet.
    You just drag, paste or import it or bring it in via the Media Browser:
    Menu > View > Show Media Browser
    If you want WordArt then you will need to create that in another program and bring it in.
    Peter

  • How do i get music videos to play like the music does on my ipad, for example one right after another and shuffle

    I need to know how I can get the music videos on my IPad to play like the music does.  What I mean id setting up a playlist, shuffle, and have them play one right after another instead of going back to the main screen.

    At the top of the playlist where it shows the playlist title and the number of songs, there are two icons. Click the "play" triangle to add the entire playlist to "Up Next", or the "shuffle" symbol to do the same thing but in random order. But the currently playing track will stop playing, and all the songs in "Up Next" will be removed (replaced by the ones from this playlist).
    If you hold down the "option" key while clicking those icons, the currently playing song will continue playing, and the new playlist will be added to "Up Next" (above the songs that were already there).

  • How do I get LP7 to treat OMFs like PT does?

    I've been working with student films recently and they all use Avid for their video editing. They deliver their projects to me for mixing as a Quicktime file and an OMF from Avid. We have tried exporting it from Avid with different options. Protools opens them flawlessly, but I prefer to use Logic and I don't want to have to purchase that overpriced OMF import tool for PTLE. Also, getting VTC sync going in PT is $$$ but all I need to get for logic is a Unitor8 to go with my AMT.
    How can I get Logic to open OMF files correctly? When I open one, it doesn't seem to do the timing correctly on it and ignores the "handles" that most of the files have. When I go to play the file it's a real mess and the director is looking at me like "What is wrong with this studio?".
    So how to I get the OMF's to work in Logic correctly? I'd like to have the volume/pan automation and the mutes/handles work correctly. I don't see any settings to change this behavior, and there is little in the manual about it.

    When I get home i'll post some screenshots of what i'm seeing. I'll make sure they are OMF 2 files also.
    It just seems that Logic messes everything up on the import. By "handles" I mean that each audio file generally has up to about 30 seconds of sound muted at the beginning and end of the region, but the area has been pulled in and muted so that only the desired part plays. You keep them around so that you can catch the click cue to the video when they snap the board on set, but of course you don't want to hear them all of the time. In protools you can just grab the Region Size tool and stretch out the beginning or end of the region to hear them. Fairly standard in post work I believe.
    When I import the file into Logic, all of the regions are playing, with no mutes, no "handles", nothing. It's really annoying and basically I have to manually go through every single sound and resize it for it to work, which is hours of work for every revision of the film. Sometimes its downright impossible.
    Whatever i'm doing, Protools opens it flawlessly when I click "import OMF" but Logic gives me junk.

  • How do I get my N97 to appear like the one in the ...

    http://www.connect.in.com/nokia-n97/photos-542597-9138233.html
    How do I get the accuweather to be blue and how do I get the Ovi store thing on the bottom?

    That is NOT a picture of a PHONE. The colors, widgets etc are made up, they're not real. As far as I know there is no way except to make your own widget background, hack into the program's code and replace the widget background to your own. I would guess that it's not open source code so good luck. The programming may not be that bad depending on what language it's done with. I have no idea, not a programmer, but sometimes images like backgrounds are stored in DLL files.
    To customize  individual apps design you need to rebuild the actual software of the app itself. That is not a theme, it's not even a picture of a phone LOL
    It's a drawing so they could make stuff any color they want (the blue is probably just a mistake)
    edited: The OVI icon I've never seen before. Maybe it's on other carriers but I've never seen it. I know the contact pictures are set in the contacts list, I don't know how to choose an icon for an application shortcut but I know it's possible. Theme makers do it so it mnust be possible to do a single icon.
    Message Edited by lightstream on 31-Jan-2010 11:29 AM

  • How can I get some text from string like AB_CD_9.9.9_Sometext

    How Can I get
    only 9.9.9 from  string "AB_CD_9.9.9_Sometext" with powershell and regular expression?
    Thank you,
    Lei

    This works.
    if('AB_CD_9.9.9_Sometext' -match '\d\.\d\.\d'){$matches[0]}else{'notfound'}
    ¯\_(ツ)_/¯

  • How can I get back and forward arrows like EI

    How can I get back and forward arrows?

    Is this about Firefox on a desktop computer as your user agent would suggest (the thread is tagged as Firefox OS)?
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible.
    *Firefox menu button > Options
    *View > Toolbars (press F10 to display the hidden Menu bar)
    *Right-click empty toolbar area
    Use Toolbar Layout (Customize) to open the Customize window and set which toolbar items to display.
    *check that "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *if "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette into the Customize window to the Bookmarks Toolbar
    *if missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar setup
    *https://support.mozilla.org/kb/How+to+customize+the+toolbar
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • [SOLVED] How to convince vim my terminal supports color?

    Hi. I recently got a shell account from Kaitocracy on his linode machine. I noticed that my bash prompt has color, as expected, but when I copied over my vim configuration (which includes a color theme), it didn't work! After some toying around, I noticed that vim recognizes the terminal escape codes using `:hi <type> start= stop=`, but not the existing `cterm` commands in my color theme. To make things more confusing, I know my terminal (urxvt) is capable of using the cterm flags.
    Also, Ctrl+L does not clear/redraw the screen as expected.
    What can I do to fix these issues? Here are the configs:
    ~/.vimrc:
    " No vi compatibility; strictly vim here.
    set nocompatible
    " Don't source /etc/vimrc
    set noexrc
    " My background is always black
    set background=dark
    " The mouse is helpful every now and then...
    set mouse=a
    " I'm a Linux user
    set fileformats=unix,dos,mac
    " Search while I type
    set incsearch
    " The blinking pisses me off
    set novisualbell
    " Line numbers are key to debugging
    set number
    set numberwidth=5
    " My tabs are 4 characters long
    set tabstop=4
    set softtabstop=4
    " Indention is also 4 characters
    set shiftwidth=4
    " Normally, I don't want tabs converted to spaces.
    set noexpandtab
    " Syntax highlighting is a staple :D
    syntax on
    " I want liberal use of hidden buffers, just in case.
    set hidden
    set laststatus=2
    " filename, filetype, readonly flag, modified flag line #, column #, %age of file length, hex value of byte under cursor.
    " Ex: .vimrc [vim][+] 48,22 55% hex:20
    set statusline=%f\ %y%r%m\ %l,%c\ %P\ hex:%B
    set noai
    " I can see where tabs and line endings are
    set listchars=tab:▸\ ,eol:¬
    " This turns on the config above; I can turn it off with :set nolist
    set list
    " I want wordwrap on, coupled with sane line-breaking. This will not work when :set list is active.
    set wrap
    set lbr
    " My color scheme is pwn
    colorscheme sporkbox
    filetype indent on
    if has("autocmd")
    " enable filetype detection
    filetype on
    " I want to convert tabs to spaces to adhere to PEP 8.
    autocmd FileType python setlocal ts=4 sts=4 sw=4 expandtab
    endif
    " \l toggles invisibles
    nmap <leader>l :set list!<CR>
    " I like to get rid of trailing white space.
    nnoremap <silent> <F5> :call <SID>StripTrailingWhitespaces()<CR>
    " Fast window movement is important
    map <C-h> <C-w>h
    map <C-j> <C-w>j
    map <C-k> <C-w>k
    map <C-l> <C-w>l
    " Courtesy of vimcasts.org
    function! <SID>StripTrailingWhitespaces()
    " Save last search and cursor position
    let _s=@/
    let l = line(".")
    let c = col(".")
    " Do the business:
    %s/\s\+$//e
    " Restore previous search history and cursor position
    let @/=_s
    call cursor(l, c)
    endfunction
    ~/.vim/colors/sporkbox.vim:
    " Color scheme "sporkbox"
    " by Daniel Campbell <[email protected]>
    " Tab characters and EOLs should be dark gray so they don't stand out too much.
    highlight SpecialKey ctermfg=darkgray
    highlight NonText ctermfg=darkgray
    " If I'm in a mode, I want to see it.
    highlight ModeMsg ctermfg=green
    " The current file should be obvious; the others can be faded.
    highlight StatusLine ctermfg=green ctermbg=black
    highlight StatusLineFC ctermfg=darkgray ctermbg=white
    " Line numbers should be just-visible, not bright.
    highlight LineNr ctermfg=darkgray
    " Titles in Markdown
    highlight Title cterm=bold ctermfg=white
    " My splits should not be bright
    highlight VertSplit ctermfg=black ctermbg=darkblue
    highlight Comment ctermfg=darkgreen
    highlight Constant ctermfg=cyan
    highlight Identifier ctermfg=yellow
    highlight Statement ctermfg=magenta
    highlight PreProc ctermfg=lightblue
    highlight Type ctermfg=blue
    highlight Special ctermfg=lightblue
    Remote .bashrc:
    ### ~/.bashrc: Sourced by all interactive bash shells on startup
    # Set a fancier prompt
    PS1='\[\e[32;01m\]\u\[\e[m\] \[\e[36m\]\w\[\e[m\]: '
    # Turn on colors for ls and grep
    alias less='less --RAW-CONTROL-CHARS'
    alias ls='ls --color=auto'
    alias grep='grep --color=auto'
    # Set colors for ls and friends
    if [ -f ~/.dir_colors ]; then
    eval `dircolors -b ~/.dir_colors`
    elif [ -f /etc/dir_colors ]; then
    eval `dircolors -b /etc/dir_colors`
    else eval `dircolors -b`; fi
    # Compilation optimization flags
    CHOST="i686-pc-linux-gnu"
    MAKEFLAGS="-j2"
    LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both"
    CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
    FFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
    CPPFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
    CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
    export PGHOST="private1.kiwilight.com"
    export PS1 CHOST MAKEFLAGS LDFLAGS CFLAGS FFLAGS CXXFLAGS
    To make matters more confusing, my vim theme works when I connect to the linode in a GNU screen session, but not when it's a straight-up terminal.
    Last edited by xelados (2010-04-25 00:34:44)

    Mr.Elendig wrote:Make sure you are using rxvt-unicode-256color and that your TERM is rxvt-256color outside of screen, and screen-256color inside of screen.
    That's the peculiarity of the problem; when I run vim in my local environment, I always get color using the `:hi <hilighttype> ctermfg=* ctermbg=*` commands. This applies inside of X through rxvt-unicode (non-256color), GNU screen, and on the plain command line in vc1. This issue seems to be related to the remote environment and/or variables not being sent through ssh.
    @moljac: When I echo'd TERM inside a screen session, it returned "screen", so I don't know whether it's legit or not.
    Last edited by xelados (2010-04-24 11:47:52)

  • How do i get built-in apps? Like Pages, numbers..

    I bought my ipad mini in January this year, I could download the free built-in apps like Pages, Numbers, Keynote. Last week I changed mi ID, when I went to download again I couldn't because it says that I need to pay! My squetion is how do i get built-in apps that are free again with other ID?

    If you have two Apple IDs, and you got the iPad set up with the first Apple ID, I would imagine your free products are tied into that Apple ID. You really don't want to have two IDs because everything you do, purchasesm devices, apps, songs, movies, TV shows ... etc., are all tied into the Apple ID.

  • [SOLVED] how do i get laptop volume control to function?

    On my toshiba laptop, my sound "works" however the rotary volume control at front of the laptop does not affect the volume. When I turn it the volume bar appears on the display but nothing happens. This used to work but I have been "playing" with my arch system to try and gain knowledge of arch et.al and now I have broke something and cannot remember how to revert back.
    I am running kdemod(4.2). SystemSettings->Multimedia shows four "cards":
    HDA Intel ALC268 (analog)
    HDA Intel ALC268 (digital)
    Esound (ESD)
    HDA Intel ALC268 (IEC958 (S/PDIF) Digital Audio Output)
    p.s. I can only get sound of the Analog device. The "test" button doesnt do anything with the other devices selected.
    Soundchip reported by "lspci":
    00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
    Soundmodules reported by "hwdetect --show-sound":
    SOUND : snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-codec snd-hda-intel soundcore
    modprobe.conf:
    # /etc/modprobe.conf (for v2.6 kernels)
    options i915 modeset=1
    alias net-pf-10 off
    rc.conf:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime"
    # USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_GB.utf8"
    HARDWARECLOCK="localtime"
    USEDIRECTISA="no"
    TIMEZONE="Europe/London"
    KEYMAP="uk"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    #MODULES=(mii r8169 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="daz"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    #eth0="dhcp"
    # Wireless: See network profiles below
    #eth0="dhcp"
    #INTERFACES=(eth0)
    wlan0="wlan0 192.168.0.10 netmask 255.255.255.0"
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(preload hal @cpufreq @networkmanager @kdm)
    would really appreciate if someone could get my volume control working.
    Last edited by keratos (2009-05-04 12:33:57)

    Wilco wrote:Edit: misread your post..., anyway you need to set the main volume control to the one that produces sound, in your case analog.
    eh ?? how is a volume control 'set' to the analog card?
    Last edited by keratos (2009-05-04 08:10:52)

  • [SOLVED]How do I get rw access to a vfat partition?

    I need user rw access to my vfat partition how would I go about setting it up.
    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x19b819b8
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 11601 93185001 7 HPFS/NTFS
    /dev/sda2 11602 11732 1052257+ 83 Linux
    /dev/sda3 11733 38913 218331382+ 5 Extended
    /dev/sda5 11733 13022 10361893+ 83 Linux
    /dev/sda6 13023 13153 1052226 82 Linux swap / Solaris
    /dev/sda7 13154 28609 124150288+ 83 Linux
    /dev/sda8 28610 38913 82766848+ 83 Linux
    Disk /dev/sdb: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000b0d11
    Device Boot Start End Blocks Id System
    /dev/sdb1 1 20525 164867031 7 HPFS/NTFS
    /dev/sdb2 20526 24351 30732345 b W95 FAT32
    /dev/sdb3 24352 30401 48596625 5 Extended
    /dev/sdb5 24352 25404 8458191 83 Linux
    /dev/sdb6 25405 30401 40138371 83 Linux
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/cdrom /mnt/cdrom udf,iso9660 rw,user,noauto 0 0
    #/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
    /dev/sda2 /boot ext3 defaults 0 1
    /dev/sda6 swap swap defaults 0 0
    /dev/sdb5 / ext3 defaults 0 1
    /dev/sdb6 /home ext3 defaults 0 1
    /dev/sdb1 /backup ntfs nls=utf8,umask=0222 0 1
    /dev/sdb2 /vfat vfat iocharset=utf8,umask=000 0 1
    /dev/sda8 /vmiso ext3 defaults 0 0
    disk wheel video audio optical storage power users username
    Last edited by cell (2007-10-23 22:42:01)

    The following works.
    /dev/sdb2 /vfat vfat auto,iocharset=utf8,rw,noexec,umask=000 0 1
    I had just tried all kind of things maybe a reboot is sometimes needed or maybe I just hit the right combo.

  • [SOLVED] How do I get systemd to stop handling core dumps itself?

    Based on advice in other threads, I did this:
    # ln -s /dev/null /etc/sysctl.d/coredump.conf
    # /lib/systemd/systemd-sysctl
    but it didn't work; /proc/sys/kernel/core_pattern still contains "systemd-coredump ...".  Furthermore, the processes that I have dumping core do so when using a lot (many GB) of memory, so the core dumps are huge.  This causes systemd-journald to eat up 100% CPU for a long time after core dumps.
    Also, how do I delete the ones that are already saved (that show up in systemd-coredumpctl)?
    Last edited by tavianator (2013-05-22 21:54:15)

    Hello tavianator.
    This didn't work for me either, so i changed the link to:
    # ln -s /dev/null /etc/sysctl.d/50-coredump.conf
    After that /proc/sys/kernel/core_pattern shows "core" only.
    Hope that helps.
    Edit: I used the naming convention from /lib/sysctl.d/ which is also "50-coredump.conf".
    Last edited by steinchen (2013-05-21 19:44:03)

  • [SOLVED] How to use Linux Bash to Create an Array of Files in a Dir...

    So I created a bash script which executes at random one PHP script in a directory,
    scripts=(
    flag_videos_which_need_grabbing.php
    grab_video.php
    grab_speaker_image.php
    php -f /home/rt_cron/${scripts[$((RANDOM%${#scripts[*]}))]} > /dev/null 2>&1;
    However, because I change the PHP scripts in that directory frequently I'd like this bash script to actually create its 'scripts' array from the current contents of the /home/rt_cron directory. Basically I need something like this,
    scripts = $(ls /home/rt_cron/*.php)
    Any ideas anyone?
    Last edited by tony5429 (2010-02-10 03:32:35)

    scripts=(`ls /home/rt_cron/*.php`)
    Methinks.
    tony5429 wrote:
    Well just minutes after posting that I found a solution with awk,
    scripts=($(ls /home/rt_cron/*.php | awk -F" " '{$1=$1; print}'));
    You don't need that awk in there at all.
    Last edited by Peasantoid (2010-02-10 03:32:03)

Maybe you are looking for