Your Ad Here Your Ad Here
Results 1 to 4 of 4

Thread: Config Files

  1. #1
    Poster
    Join Date
    Jan 2003
    Posts
    908
    Here is my .zshrc file, it's a slight modification of this .zshrc.

    -------------------------------------------------------------------------

    #---Variables---#
    export LD_LIBRARY_PATH='/usr/local/lib/:/usr/lib/:/lib/:/usr/X11R6/lib/:/usr/include:/usr/local$
    export KDEDIR=/opt/kde
    export PATH=/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/X$
    export LS_COLORS="fi=0;36:di=31;1:ln=1;33:ec=\\e[0;37m:ex=1:mi=1;30r=1;30:*.c=32:*.bz2=32:*.t$
    export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"
    #--------------#

    #---Celeron (Coppermine) aka Celeron2 (Intel)---#
    export CHOST="i686-pc-linux-gnu"
    export CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
    export CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
    #-----------------------------------------------#

    #---aliases---#
    alias startx="startx -- -dpi 75"
    alias aterm="aterm -ls -bg black -fg white"
    alias ls="ls -p --color=auto"
    #-------------#

    if ! [ $TERM ] ; then
    eval `tset -s -Q`
    case $TERM in
    con*|vt100) tset -Q -e ^?
    ;;
    esac
    fi

    #---History file---#
    HISTSIZE=1000
    SAVEHIST=1000
    HISTFILE=~/.history
    #------------------#


    #---Options---#
    setopt \
    NO_all_export \
    always_last_prompt \
    NO_always_to_end \
    append_history \
    NO_auto_cd \
    auto_list \
    auto_menu \
    NO_auto_name_dirs \
    auto_param_keys \
    auto_param_slash \
    auto_pushd \
    auto_remove_slash \
    NO_auto_resume \
    bad_pattern \
    bang_hist \
    NO_beep \
    brace_ccl \
    correct_all \
    NO_bsd_echo \
    cdable_vars \
    NO_chase_links \
    NO_clobber \
    complete_aliases \
    complete_in_word \
    NO_correct \
    correct_all \
    csh_junkie_history \
    NO_csh_junkie_loops \
    NO_csh_junkie_quotes \
    NO_csh_null_glob \
    equals \
    extended_glob \
    extended_history \
    function_argzero \
    glob \
    NO_glob_assign \
    glob_complete \
    NO_glob_dots \
    glob_subst \
    hash_cmds \
    hash_dirs \
    hash_list_all \
    hist_allow_clobber \
    hist_beep \
    hist_ignore_dups \
    hist_ignore_space \
    NO_hist_no_store \
    hist_verify \
    NO_hup \
    NO_ignore_braces \
    NO_ignore_eof \
    interactive_comments \
    NO_list_ambiguous \
    NO_list_beep \
    list_types \
    long_list_jobs \
    magic_equal_subst \
    NO_mail_warning \
    NO_mark_dirs \
    NO_menu_complete \
    multios \
    nomatch \
    notify \
    NO_null_glob \
    numeric_glob_sort \
    NO_overstrike \
    path_dirs \
    posix_builtins \
    NO_print_exit_value \
    NO_prompt_cr \
    prompt_subst \
    pushd_ignore_dups \
    NO_pushd_minus \
    NO_pushd_silent \
    pushd_to_home \
    rc_expand_param \
    NO_rc_quotes \
    NO_rm_star_silent \
    NO_sh_file_expansion \
    sh_option_letters \
    short_loops \
    NO_sh_word_split \
    NO_single_line_zle \
    NO_sun_keyboard_hack \
    unset \
    NO_verbose \
    NO_xtrace \
    zle
    #-------------#

    #---Prompt---#
    case "$TERM" in
    *xterm*)
    declare PS1="-=(%B%n%b : %B%~%b%)=- > ";;
    *)
    declare PS1="-=(%B%n%b : %B%~%b%)=- > ";;
    esac
    #-------------#

    unset MAILCHECK

    export COLORFGBG="lightgray;black"


    -------------------------------------------------------------------------

    Here is the .torsmorc I use:

    -------------------------------------------------------------------------

    # torsmo configuration

    uppercase no

    # set to yes if you want tormo to be forked in the background

    background yes

    # X font used

    font gelly

    # Update interval in seconds

    update_interval 2

    # Draw borders around text

    draw_borders no

    # Text alignment, other possible values are commented

    # alignment top_left
    # alignment top_right
    alignment top_right
    # alignment bottom_right

    # No buffers if used memory?
    no_buffers yes

    # Gap between borders of screen and text

    #gap_x 16
    #gap_y 333

    # Possible variables to be used:
    #
    # kernel -- kernel version
    # uptime -- uptime
    # totalup <if> -- total upload
    # totaldown <if> -- total download
    # speedup <if> -- up speed
    # speeddown <if> -- down speed
    # speedupf <if> -- up speed (float)
    # speeddownf <if>-- down speed (float)
    # mem -- amount of mem in use
    # memmax -- total amount of mem
    # memperc -- percentage of mem in use
    # swap -- amount of swap in use
    # swapmax -- total amount of swap
    # swapperc -- percentage of swap in use
    # updates -- number of updates (for debugging :-)
    # nodename -- hostname
    # machine -- machine, i686 for example
    # sysname -- system name, Linux for example
    # temp1 -- Temperature #1 from i2c-sensors
    # temp2 -- Temperature #2 from i2c-sensors
    # &HR <num> -- horizontal line, <num> is the height in pixels

    # variable is given either in format &#036;variable or in &#036;{variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    # stuff after &#39;TEXT&#39; will be formatted on screen

    #RAM: &#036;mem/&#036;memmax - &#036;memperc% &#036;{color green}&#036;{membar 4}&#036;color
    #Swap: &#036;swap/&#036;swapmax - &#036;swapperc% &#036;{color green}&#036;{swapbar 4}&#036;color

    TEXT
    Uptime &#036;uptime

    RAM: &#036;mem/&#036;memmax - &#036;memperc%
    CPU: &#036;cpu% &#036;{color green}&#036;{cpubar 4}&#036;color

    ppp0:
    Up: &#036;{color white}&#036;{upspeed ppp0}&#036;color k/s - Down: &#036;{color white}&#036;{downspeed ppp0}&#036;color k/s
    Totals: Up: &#036;{totalup ppp0} down: &#036;{totaldown ppp0}

    -------------------------------------------------------------------------

    I&#39;m trying to make a good .tcshrc file for FreeBSD, because when I use zsh in FreeBSD, the backspace and arrow keys make the cursor stay in the same place until I let it go and I can&#39;t see what i&#39;m deleting...etc.

    Share any interesting config files you have.

  2. Software & Hardware   -   #2
    shn's Avatar 3μ|\|(7
    Join Date
    May 2003
    Posts
    3,585
    Originally posted by LSA@15 June 2004 - 21:05
    Share any interesting config files you have.
    Config files?

    Are you bored or just bored?

  3. Software & Hardware   -   #3
    Poster
    Join Date
    Jan 2003
    Posts
    908
    Bored at the time I guess. B)

  4. Software & Hardware   -   #4
    shn's Avatar 3μ|\|(7
    Join Date
    May 2003
    Posts
    3,585
    Originally posted by LSA@15 June 2004 - 21:05
    Here is my .zshrc file, it&#39;s a slight modification of this .zshrc.

    -------------------------------------------------------------------------

    #---Variables---#
    export LD_LIBRARY_PATH=&#39;/usr/local/lib/:/usr/lib/:/lib/:/usr/X11R6/lib/:/usr/include:/usr/local&#036;
    export KDEDIR=/opt/kde
    export PATH=/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/X&#036;
    export LS_COLORS="fi=0;36:di=31;1:ln=1;33:ec=&#092;&#092;e[0;37m:ex=1:mi=1;30r=1;30:*.c=32:*.bz2=32:*.t&#036;
    export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"
    #--------------#

    #---Celeron (Coppermine) aka Celeron2 (Intel)---#
    export CHOST="i686-pc-linux-gnu"
    export CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
    export CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
    #-----------------------------------------------#

    #---aliases---#
    alias startx="startx -- -dpi 75"
    alias aterm="aterm -ls -bg black -fg white"
    alias ls="ls -p --color=auto"
    #-------------#

    if &#33; [ &#036;TERM ] ; then
    eval `tset -s -Q`
    case &#036;TERM in
    con*|vt100) tset -Q -e ^?
    ;;
    esac
    fi

    #---History file---#
    HISTSIZE=1000
    SAVEHIST=1000
    HISTFILE=~/.history
    #------------------#


    #---Options---#
    setopt &#092;
    NO_all_export &#092;
    always_last_prompt &#092;
    NO_always_to_end &#092;
    append_history &#092;
    NO_auto_cd &#092;
    auto_list &#092;
    auto_menu &#092;
    NO_auto_name_dirs &#092;
    auto_param_keys &#092;
    auto_param_slash &#092;
    auto_pushd &#092;
    auto_remove_slash &#092;
    NO_auto_resume &#092;
    bad_pattern &#092;
    bang_hist &#092;
    NO_beep &#092;
    brace_ccl &#092;
    correct_all &#092;
    NO_bsd_echo &#092;
    cdable_vars &#092;
    NO_chase_links &#092;
    NO_clobber &#092;
    complete_aliases &#092;
    complete_in_word &#092;
    NO_correct &#092;
    correct_all &#092;
    csh_junkie_history &#092;
    NO_csh_junkie_loops &#092;
    NO_csh_junkie_quotes &#092;
    NO_csh_null_glob &#092;
    equals &#092;
    extended_glob &#092;
    extended_history &#092;
    function_argzero &#092;
    glob &#092;
    NO_glob_assign &#092;
    glob_complete &#092;
    NO_glob_dots &#092;
    glob_subst &#092;
    hash_cmds &#092;
    hash_dirs &#092;
    hash_list_all &#092;
    hist_allow_clobber &#092;
    hist_beep &#092;
    hist_ignore_dups &#092;
    hist_ignore_space &#092;
    NO_hist_no_store &#092;
    hist_verify &#092;
    NO_hup &#092;
    NO_ignore_braces &#092;
    NO_ignore_eof &#092;
    interactive_comments &#092;
    NO_list_ambiguous &#092;
    NO_list_beep &#092;
    list_types &#092;
    long_list_jobs &#092;
    magic_equal_subst &#092;
    NO_mail_warning &#092;
    NO_mark_dirs &#092;
    NO_menu_complete &#092;
    multios &#092;
    nomatch &#092;
    notify &#092;
    NO_null_glob &#092;
    numeric_glob_sort &#092;
    NO_overstrike &#092;
    path_dirs &#092;
    posix_builtins &#092;
    NO_print_exit_value &#092;
    NO_prompt_cr &#092;
    prompt_subst &#092;
    pushd_ignore_dups &#092;
    NO_pushd_minus &#092;
    NO_pushd_silent &#092;
    pushd_to_home &#092;
    rc_expand_param &#092;
    NO_rc_quotes &#092;
    NO_rm_star_silent &#092;
    NO_sh_file_expansion &#092;
    sh_option_letters &#092;
    short_loops &#092;
    NO_sh_word_split &#092;
    NO_single_line_zle &#092;
    NO_sun_keyboard_hack &#092;
    unset &#092;
    NO_verbose &#092;
    NO_xtrace &#092;
    zle
    #-------------#

    #---Prompt---#
    case "&#036;TERM" in
    *xterm*)
    declare PS1="-=(%B%n%b : %B%~%b%)=- > ";;
    *)
    declare PS1="-=(%B%n%b : %B%~%b%)=- > ";;
    esac
    #-------------#

    unset MAILCHECK

    export COLORFGBG="lightgray;black"


    -------------------------------------------------------------------------

    Here is the .torsmorc I use:

    -------------------------------------------------------------------------

    # torsmo configuration

    uppercase no

    # set to yes if you want tormo to be forked in the background

    background yes

    # X font used

    font gelly

    # Update interval in seconds

    update_interval 2

    # Draw borders around text

    draw_borders no

    # Text alignment, other possible values are commented

    # alignment top_left
    # alignment top_right
    alignment top_right
    # alignment bottom_right

    # No buffers if used memory?
    no_buffers yes

    # Gap between borders of screen and text

    #gap_x 16
    #gap_y 333

    # Possible variables to be used:
    #
    # kernel -- kernel version
    # uptime -- uptime
    # totalup <if> -- total upload
    # totaldown <if> -- total download
    # speedup <if> -- up speed
    # speeddown <if> -- down speed
    # speedupf <if> -- up speed (float)
    # speeddownf <if>-- down speed (float)
    # mem -- amount of mem in use
    # memmax -- total amount of mem
    # memperc -- percentage of mem in use
    # swap -- amount of swap in use
    # swapmax -- total amount of swap
    # swapperc -- percentage of swap in use
    # updates -- number of updates (for debugging :-)
    # nodename -- hostname
    # machine -- machine, i686 for example
    # sysname -- system name, Linux for example
    # temp1 -- Temperature #1 from i2c-sensors
    # temp2 -- Temperature #2 from i2c-sensors
    # &HR <num> -- horizontal line, <num> is the height in pixels

    # variable is given either in format &#036;variable or in &#036;{variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    # stuff after &#39;TEXT&#39; will be formatted on screen

    #RAM: &#036;mem/&#036;memmax - &#036;memperc% &#036;{color green}&#036;{membar 4}&#036;color
    #Swap: &#036;swap/&#036;swapmax - &#036;swapperc% &#036;{color green}&#036;{swapbar 4}&#036;color

    TEXT
    Uptime &#036;uptime

    RAM: &#036;mem/&#036;memmax - &#036;memperc%
    CPU: &#036;cpu% &#036;{color green}&#036;{cpubar 4}&#036;color

    ppp0:
    Up: &#036;{color white}&#036;{upspeed ppp0}&#036;color k/s - Down: &#036;{color white}&#036;{downspeed ppp0}&#036;color k/s
    Totals: Up: &#036;{totalup ppp0} down: &#036;{totaldown ppp0}

    -------------------------------------------------------------------------

    I&#39;m trying to make a good .tcshrc file for FreeBSD, because when I use zsh in FreeBSD, the backspace and arrow keys make the cursor stay in the same place until I let it go and I can&#39;t see what i&#39;m deleting...etc.

    Share any interesting config files you have.
    I just noticed your -o flag is a class-3 optimization. Do you ever have any performance issues with programs you use a setting like that for?

    My processor is 2 times faster than yours (guessing) and I can&#39;t specify anything higher than -O2 or my applications start acting strange. With your processor you could probably get by with just -O0 for no optimization at all. I generally use the -O2 flag because it&#39;s the number of processors I have in my machine plus one. That&#39;s about as much optimiztion as I can get.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •