Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Terminal Configs Gallery [Sticky]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lenk
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 211

PostPosted: Thu Feb 03, 2005 11:31 pm    Post subject: Terminal Configs Gallery [Sticky] Reply with quote

Here comes the time you can show off your leet terminal config, be it aterm,eterm,xterm,rxvt,urxvt,mrxvt. A small screenshot with the config would be great :)

cheers,
lenk
_________________
E6300 Gigabyte GA-965P-DS3 2GB Corsair 320GB Seagate 7200.10 XFX 7600GT Gentoo
Dell M1330 T7500 2GB 160GB 13.3" WXGA Gentoo
Sharp Zaurus SL-C760 Cacko ROM 1.21b / pdaXrom 1.10rc5 512MB CF + 512MB SD
Sun Ultra5 Gentoo


Last edited by lenk on Fri Feb 04, 2005 4:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Fri Feb 04, 2005 1:38 am    Post subject: Reply with quote

http://community.webshots.com/photo/99208012/265987509OisjHR

urxvt:

Code:
urxvt*borderLess: true
urxvt*loginShell: true
urxvt*inheritPixmap: true
urxvt*tintColor: #373C57
#urxvt*tintColor: #ABC865
urxvt*foreground: #ffffff
urxvt*background: #000000
urxvt*scrollBar: false
urxvt*saveLines: 3000
urxvt*geometry: 78x24
urxvt*externalBorder: 2
urxvt*internalBorder: 0
#urxvt*font: xft:Bitstream Vera Sans Mono:charwidth=8:pixelsize=10
urxvt*font: xft:aquafont-10:charwidth=7
!urxvt*font: -*-Bright-*
urxvt*color0:           #000000
urxvt*color1:           #a35757
urxvt*color2:           #7a8672
urxvt*color3:           #968a38
urxvt*color4:           #414171
urxvt*color5:           #963c59
urxvt*color6:           #418179
urxvt*color7:           #bebebe
urxvt*color8:           #666666
urxvt*color9:           #a35757
urxvt*color10:          #c5f779
urxvt*color11:          #fff796
urxvt*color12:          #4186be
urxvt*color13:          #cf9ebe
urxvt*color14:          #71bebe
urxvt*color15:          #ffffff
Back to top
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 804

PostPosted: Fri Feb 04, 2005 2:34 am    Post subject: Reply with quote

this may sound a bit newbish but i didn't know terms could use font's like that.
Back to top
View user's profile Send private message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Fri Feb 04, 2005 3:00 am    Post subject: Reply with quote

certain one's can...not sure which exactly, but urxvt is one of em.
Back to top
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 804

PostPosted: Fri Feb 04, 2005 3:50 am    Post subject: Reply with quote

well i have a more of a miss match of settings in differnt places.

xdefaults
Code:

XTerm*scrollTtyOutput: false
XTerm*scrollKey: true
XTerm*internalBorder:           3
XTerm*scrollBar:                true
XTerm*rightScrollBar:           true
XTerm*loginShell:               true
XTerm*geometry:                 85x23
XTerm*saveLines:                5000
XTerm*charClass:                33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48,35:48,58:48


bashrc for the prompt
Code:

source /home/kevin/twtty
twtty


twtty
Code:

#!/bin/bash

#   termwide prompt with tty number
#      by Giles - created 2 November 98
#
#      $Revision: 1.2 $   $Author: giles $
#      $Source: /home/giles/.bashprompt/bashthemes/RCS/twtty,v $
#      $Log: twtty,v $
#      Revision 1.2  1999/03/25 01:37:51  giles
#
#      Revision 1.1  1999/03/25 01:35:26  giles
#      Initial revision
#
#     This is a variant on "termwide" that incorporates the tty number.
#
#     24 March 99 - use of sed with \{$cut\} where $cut is an integer
#     means that this probably now requires a GNU version of sed.

function prompt_command {

TERMWIDTH=${COLUMNS}

#   Calculate the width of the prompt:

hostnam=$(echo -n $HOSTNAME | sed -e "s/[\.].*//")
#   "whoami" and "pwd" include a trailing newline
usernam=$(whoami)
cur_tty=$(tty | sed -e "s/.*tty\(.*\)/\1/")
newPWD="${PWD}"
#   Add all the accessories below ...
let promptsize=$(echo -n "--(${usernam}@${hostnam}:${cur_tty})---(${PWD})--" \
                 | wc -c | tr -d " ")
let fillsize=${TERMWIDTH}-${promptsize}
fill=""
while [ "$fillsize" -gt "0" ]
do
    fill="${fill}-"
   let fillsize=${fillsize}-1
done

if [ "$fillsize" -lt "0" ]
then
   let cut=3-${fillsize}
   newPWD="...$(echo -n $PWD | sed -e "s/\(^.\{$cut\}\)\(.*\)/\2/")"
fi
}

PROMPT_COMMAND=prompt_command

function twtty {

local GRAY="\[\033[1;30m\]"
local LIGHT_GRAY="\[\033[0;37m\]"
local WHITE="\[\033[1;37m\]"
local NO_COLOUR="\[\033[0m\]"

local LIGHT_BLUE="\[\033[1;34m\]"
local YELLOW="\[\033[1;33m\]"

case $TERM in
    xterm*)
        TITLEBAR='\[\033]0;\u@\h:\w\007\]'
        ;;
    *)
        TITLEBAR=""
        ;;
esac

PS1="$TITLEBAR\
$YELLOW-$LIGHT_BLUE-(\
$YELLOW\$usernam$LIGHT_BLUE@$YELLOW\$hostnam$LIGHT_BLUE:$WHITE\$cur_tty\
${LIGHT_BLUE})-${YELLOW}-\${fill}${LIGHT_BLUE}-(\
$YELLOW\${newPWD}\
$LIGHT_BLUE)-$YELLOW-\
\n\
$YELLOW-$LIGHT_BLUE-(\
$YELLOW\$(date +%H%M)$LIGHT_BLUE:$YELLOW\$(date \"+%a,%d %b %y\")\
$LIGHT_BLUE:$WHITE\$$LIGHT_BLUE)-\
$YELLOW-\
$NO_COLOUR "

PS2="$LIGHT_BLUE-$YELLOW-$YELLOW-$NO_COLOUR "

}


and the xterm settings shell script i made sence fluxbox's menu doesn't like too many options on the commands it executes.

Code:

#!/bin/bash
xterm +ls -j -s -bg black -fg steelblue -bc -fn -artwiz-smoothansi-*-*-*-*-*-*-*-*-*-*-*-* -fs 12


i use aterm for root here is it's shell script file i made cause of fluxbox.
Code:

#!/bin/bash
aterm -tr -trsb -sr -fg orangered -sh 70 -fade 70 +ls -fn -artwiz-smoothansi-*-*-*-*-*-*-*-*-*-*-*-* -tn xterm -e su root
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Fri Feb 04, 2005 3:51 am    Post subject: Reply with quote

dswissmiss wrote:
http://community.webshots.com/photo/99208012/265987509OisjHR

urxvt:

Code:
urxvt*borderLess: true
urxvt*loginShell: true
urxvt*inheritPixmap: true
urxvt*tintColor: #373C57
#urxvt*tintColor: #ABC865
urxvt*foreground: #ffffff
urxvt*background: #000000
urxvt*scrollBar: false
urxvt*saveLines: 3000
urxvt*geometry: 78x24
urxvt*externalBorder: 2
urxvt*internalBorder: 0
#urxvt*font: xft:Bitstream Vera Sans Mono:charwidth=8:pixelsize=10
urxvt*font: xft:aquafont-10:charwidth=7
!urxvt*font: -*-Bright-*
urxvt*color0:           #000000
urxvt*color1:           #a35757
urxvt*color2:           #7a8672
urxvt*color3:           #968a38
urxvt*color4:           #414171
urxvt*color5:           #963c59
urxvt*color6:           #418179
urxvt*color7:           #bebebe
urxvt*color8:           #666666
urxvt*color9:           #a35757
urxvt*color10:          #c5f779
urxvt*color11:          #fff796
urxvt*color12:          #4186be
urxvt*color13:          #cf9ebe
urxvt*color14:          #71bebe
urxvt*color15:          #ffffff


Where do you put these settings?
Back to top
View user's profile Send private message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Fri Feb 04, 2005 3:53 am    Post subject: Reply with quote

/home/username/.Xdefaults
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Fri Feb 04, 2005 3:59 am    Post subject: Reply with quote

dswissmiss wrote:
/home/username/.Xdefaults


Thanks! Will try asap.
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Fri Feb 04, 2005 5:06 am    Post subject: Reply with quote

How the hell do I emerge urxvt? What is it part of?
Back to top
View user's profile Send private message
oberyno
Guru
Guru


Joined: 15 Feb 2004
Posts: 467
Location: /bin/zsh

PostPosted: Fri Feb 04, 2005 5:14 am    Post subject: Reply with quote

DrWoland wrote:
How the hell do I emerge urxvt? What is it part of?
emerge rxvt-unicode. You can see which package a file belongs to at gentoo-stats(still sort of new).
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Fri Feb 04, 2005 5:22 am    Post subject: Reply with quote

Kind of plain but functional. Looks like this. I am using xterm with zsh.

~/.Xdefaults
Code:
! Emacs settings
Emacs*bitmapIcon: on

! X niceness
!Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintfull
Xcursor.size: 16
Xcursor.theme: whiteglass

! Fonts
!aterm*font:             "-*-proggy clean-*-*-*-*-*-*-*-*-*-*-*"
!aterm*boldFont:         "-*-proggy clean-*-*-*-*-*-*-*-*-*-*-*"
XTerm*faceName:    Bitstream Vera Sans Mono:style=Roman
XTerm*boldFont:         Bitstream Vera Sans Mono:style=Roman

! Xterm settings (aterm/rxvt inherits, urxvt does not)
XTerm*loginshell:       true
XTerm*faceSize:      10
XTerm*scrollBar:   false
! Don't scroll output when the paged up
XTerm*scrollTtyOutput:   false
XTerm*background:   grey10
XTerm*foreground:   WhiteSmoke
XTerm*cursorColor:   red
! Don't remember...
XTerm*charClass:   33:48,37:48,45-47:48,64:48
! No bold chars
XTerm*boldMode:         false
! Makes scrolling faster allowing it to jump whole screens at a time
XTerm*jumpScroll:   true
! Makes scrolling faster allowing it to skip over content when scrolling fast
XTerm*multiScroll:   true
XTerm*autoWrap:      true
XTerm*cursorBlink:   true
! Fixes delete problems in emacs and creates problems in vim
!XTerm*deleteIsDEL:   true
! How much scrollback to save
XTerm*saveLines:   1000
! This fixes odd behavior with alt
XTerm*eightBitInput:   false
! Not sure what this does
XTerm*metaSendsEscape:   true

XTerm*color0:           #000000
XTerm*color1:           #CD0000
XTerm*color2:           #00CD00
XTerm*color3:           #CDCD00
XTerm*color4:           #4B4BED
XTerm*color5:           #CD00CD
XTerm*color6:           #00CDCD
XTerm*color7:           #b3b3b3
XTerm*color8:           #404040
XTerm*color9:           #FF0000
XTerm*color10:          #49DC49
XTerm*color11:          #FFFF00
XTerm*color12:          #5858E5
XTerm*color13:          #FF00FF
XTerm*color14:          #00FFFF
XTerm*color15:          #FFFFFF


and [b]~/.zshrc
Code:
#####################
## System settings ##
#####################
export BROWSER=/usr/bin/firefox

if [ -e "/etc/profile.env" ]
then
        . /etc/profile.env
fi

## dirty hack to fix root's screen sessions
export SHELL=/bin/zsh

# 077 would be more secure, but 022 is generally quite realistic
umask 022

if [ `/usr/bin/whoami` = 'root' ]
then
    USR=priv    # This is used below for prompt colors
    export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:${ROOTPATH}"
else
    USR=nopriv  # This is used below for prompt colors
    export PATH="/bin:/usr/bin:/usr/local/bin:${PATH}"
fi
unset ROOTPATH

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]
then
        export INPUTRC="/etc/inputrc"
fi

#########################################################################
## Change the window title of X terminals to something more meaningful ##
#########################################################################
# This function sets the window tile to user@host:/workingdir before each
# prompt. If you're using screen, it sets the window title (works
# wonderfully for hardstatus lines :)
precmd () {
  [[ -t 1 ]] || return
  case $TERM in
    *xterm*|rxvt|(dt|k|E|a)term) print -Pn "\e]2;[%l] %n@%m:%~\a"
    ;;
    screen*) print -Pn "\e]2;[screen] [%l] %n@%m:%~\e\134"
  esac
 
  case $HOSTNAME in (copperhead-nope)
## Show battery status if on laptop and on battery ##
      if which acpi > /dev/null; then
          ACPI_RESULT=`acpi | fgrep discharging`
          ACPI=''
          # um...i'll make this more elegant later
          if [[ "$ACPI_RESULT" != "" ]]; then
              ACPI_SMALL=${ACPI_RESULT[(w)4,(w)4]/\% /%%}
              ACPI=$WHITE' | '$RED$ACPI_SMALL'%%'
          fi
      else
          ACPI=''
      fi
  esac
  case $HOSTNAME in (copperhead)
## Show battery status if on laptop and on battery ##
      if which apm > /dev/null; then
          APM_RESULT=`apm | fgrep off`
          APM=''
          # um...i'll make this more elegant later
          if [[ "$APM_RESULT" != "" ]]; then
              APM_SMALL=${APM_RESULT[(w)6,(w)6]/\%}
              APM=$WHITE' | '$RED$APM_SMALL'%%'
          fi
      else
          APM=''
      fi
  esac

  export RPROMPT=$BLUE'('$WHITE%n$RED'@'$GREEN%m$APM$BLUE')'$NC
}

## This sets the window title to the last run command. ##
[[ -t 1 ]] || return
case $TERM in
    *xterm*|rxvt|(dt|k|E|a)term)
    preexec () {
    print -Pn "\e]2;[%l] [%n@%m] <$1>\a"
    #print -Pn "\e]2;$1\a"
    }
    ;;
    screen*)
        preexec () {
        # this doesn't do anything... *wah*
        #print -Pn "\e\"[screen] [%l] [%n@%m] <$1>\e\134"
        print -Pn "\e\"$1\e\134"
    }
  ;;
esac

#################################
## Right and left prompt setup ##
#################################

## Define some colors for easy use ##
## Bold colors in caps ##
local black=$'%{\e[0;30m%}'
local BLACK=$'%{\e[1;30m%}'
local red=$'%{\e[0;31m%}'
local RED=$'%{\e[1;31m%}'
local green=$'%{\e[0;32m%}'
local GREEN=$'%{\e[1;32m%}'
local yellow=$'%{\e[0;33m%}'
local YELLOW=$'%{\e[1;33m%}'
local blue=$'%{\e[0;34m%}'
local BLUE=$'%{\e[1;34m%}'
local purple=$'%{\e[0;35m%}'
local PURPLE=$'%{\e[1;35m%}'
local cyan=$'%{\e[0;36m%}'
local CYAN=$'%{\e[1;36m%}'
local WHITE=$'%{\e[1;37m%}'
local white=$'%{\e[0;37m%}'
local NC=$'%{\e[0m%}' # no color

# Find out how we logged in. This is used for the PROMPT color settings below
local THIS_TTY=tty`ps aux | grep $$ | grep bash | awk '{ print $7 }'`
local SESS_SRC=`who | grep $THIS_TTY | awk '{ print $6 }'`

local SSH_FLAG=0
SSH_IP=`echo $SSH_CLIENT | awk '{ print $1 }'`
if [ $SSH_IP ] ; then
  local SSH_FLAG=1
fi
SSH2_IP=`echo $SSH2_CLIENT | awk '{ print $1 }'`
if [ $SSH2_IP ] ; then
  local SSH_FLAG=1
fi
if [ $SSH_FLAG -eq 1 ] ; then
  local CONN=ssh
elif [ -z $SESS_SRC ] ; then
  local CONN=lcl
elif [ $SESS_SRC = "(:0.0)" -o $SESS_SRC = "" ] ; then
  local CONN=lcl
else
  local CONN=tel
fi

# Set some prompt colors:
# Local: user is white, root is light red
# Telnet: user is light cyan, root is purple..tehe
# SSH: user is light green, root is yellow
if [ $USR = nopriv ] ; then
    PRMT=$GREEN'>'
else
    PRMT=$RED'!>'
fi

if [ $CONN = tel ] ; then
    local CONN=$YELLOW'tel '
elif [ $CONN = ssh ] ; then
    local CONN=$YELLOW'ssh '
else
    local CONN=''
fi

## Dirty hack to tell if i'm running in screen
if [[ "$TERM" == "screen" ]]; then
    local SCREEN=$CYAN'scr '
else
    local SCREEN=''
fi

## left prompt -- username:[hostname]$ ##
PROMPT=$BLUE'('$RED'%~'$BLUE')'$'\n'$SCREEN$CONN$PRMT' '$NC
## right prompt is set in precmd

###########################
## Environment Variables ##
###########################
export COLORTERM=yes
export CC=gcc
export MANPAGER=less
export PAGER=less
# export CVSROOT=':ext:me@cvsserver.foo.com:/somewhere/cvs'
export CVS_RSH='/usr/bin/ssh'

## Add to Path ##
# /usr/scripts/ -- my scripts
# /usr/apps/ -- directory for manual installs (non-portage)
export PATH=$PATH:/usr/scripts/:/usr/apps/

## SCREENDIR apparently screws 'screen' up ##
unset SCREENDIR

#############
## Aliases ##
#############

## zsh customizations ##
alias mv='nocorrect mv'
alias cp='nocorrect cp'
alias mkdir='nocorrect mkdir -p'
autoload zmv
alias zmv='noglob zmv -W'

## ls stuff ##
alias ls='ls -F --color=auto'
alias ll='ls -alhF --color=auto'
alias d='ls -F | grep /'
eval `dircolors -b /etc/DIR_COLORS` # Now taken care of below

## editors ##
alias nano='nano -w'
alias pico='nano -w' # heh...
alias em='emacs -nw' # taken care of with a function

## altered commands ##
alias cd..='cd ..'
alias x='exit'       # don't really know why I use this
alias h='history 1'
alias hg='h | grep'
alias gc='gcc -ansi -pedantic -O2 -Wall -o'
alias grep='grep --color=auto'
alias less='less -R'
#alias startx='startxfce4'
alias diff='colordiff'
alias fixtime='sudo ntpdate tick.gatech.edu' # i'll fix my clock later..

## user shutdown ##
alias poweroff='sudo /sbin/poweroff'
alias reboot='sudo /sbin/reboot'
alias halt='sudo /sbin/halt'

## cvs laziness ##
alias up='cvs up -dP'
alias cvslog='cvs2cl.pl && vim ChangeLog && rm ChangeLog.bak'
alias cvsscott='export CVSROOT=":ext:name@server.com:/net/hu12/pxscott/cvsroot"'
alias cvsmatt='export CVSROOT=":ext:name@server.com:/data/repos"'

## portage stuff ##
alias emerge='emerge -v'
alias xmerge='ACCEPT_KEYWORDS="~x86" emerge -p'
alias eonce='emerge --oneshot'
alias depon='qpkg -I -q'

## mount magic ##
alias mcdrom='mount /mnt/cdrom && cd /mnt/cdrom'
alias ucdrom='cd && umount /mnt/cdrom'
alias mwinc='mount /mnt/winc && cd /mnt/winc'
alias uwinc='cd && umount /mnt/winc'
alias mwind='mount /mnt/wind && cd /mnt/wind'
alias uwind='cd && umount /mnt/wind'

## one-liner's ##
alias fixperm='find . -type f -print0 | xargs -0 chmod 644; find . -type d -print0 | xargs -0 chmod 755'
alias btdl="btdownloadheadless.py --max_uploads 2 --minport 5000 --maxport 5010 --max_upload_rate 4"
alias bfast="btdownloadheadless.py --max_uploads 6 --minport 5000 --maxport 5010 --max_upload_rate 15"
alias grabhttp="wget -v -F -N -x --cache=off --recursive --convert links"
alias tolower="for n in *; do mv $n `echo $n | tr '[:upper:]' '[:lower:]'`; done"
alias movcap="xvidcap --gui no --compress 2 --file movie.mpg --frames 0 --fps 10 --cap_geometry 800x600+0+0"
alias getpics="mount /mnt/camera && mv /mnt/camera/dcim/100olymp/* /home/allucid/media/pics/camdump/ && umount /mnt/camera && cd /home/allucid/media/pics/camdump/ && fixperm"
alias useinfo="cat /usr/portage/profiles/use*desc | grep -i" # can also use einfo -i if you have gentoolkit installed
alias strip="sed -e 's/#.*//;/^\s*$/d' '$@'"
alias deps="qpkg -I -q" # never remember the options for qpkg...

######################
## Completion stuff ##
######################

## Fancypants completion ##
autoload -U compinit
compinit

# completion for "man" by Gossamer <gossamer@tertius.net.au> 980827
# This is damn funky. I'm going to do something similar for pinfo,
# hopefully.
compctl -f -x 'S[1][2][3][4][5][6][7][8][9]' -k '(1 2 3 4 5 6 7 8 9)' \
  - 'R[[1-9nlo]|[1-9](|[a-z]),^*]' -K 'match-man' \
  - 's[-M],c[-1,-M]' -g '*(-/)' \
  - 's[-P],c[-1,-P]' -c \
  - 's[-S],s[-1,-S]' -k '( )' \
  - 's[-]' -k '(a d f h k t M P)' \
  - 'p[1,-1]' -c + -K 'match-man' \
  -- man

# Completition
compctl -b bindkey
compctl -v export
compctl -o setopt
compctl -v unset
compctl -o unsetopt
compctl -v vared
compctl -c which
compctl -c sudo


## Prevent CVS files/directories from being completed
zstyle ':completion:*:(all-|)files' ignored-patterns '(|*/)CVS'
zstyle ':completion:*:cd:*' ignored-patterns '(*/)#CVS'

######################
## Custom Functions ##
######################

## copy/paste from X clipboard function ##
copy-to-clipboard ()
{
  if [ -n "$LBUFFER$RBUFFER" ]; then
    echo $LBUFFER$RBUFFER | xclip -i
  fi
}

paste-from-clipboard ()
{
  CLIPOUT=`xclip -o`
  BUFFER=$LBUFFER$CLIPOUT$RBUFFER
}

zle -N paste-from-clipboard paste-from-clipboard
zle -N copy-to-clipboard copy-to-clipboard
#bindkey "^V" paste-from-clipboard (use shift-insert instead)
bindkey "^X" copy-to-clipboard

## use colordiff for cvs ##
function cvsdiff () { cvs diff $@ | colordiff | less -R; }

## merge pdf files ##
joinpdf () {
    gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf "$@"
}

## open vim on regular file, sudo console emacs on a root file ##
vim () {
        LIMIT=$#
        for ((i = 1; i <= $LIMIT; i++ )) do
                eval file="\$$i"
                if [[ -e $file && ! -O $file ]]
                then
                        otherfile=1
                else

                fi
        done
        if [[ $otherfile = 1 ]]
        then
                sudo vim "$@"
        else
                command vim "$@"
        fi
}

########################
## Everything else... ##
########################

## warn before clobbering a file with > ##
set -o noclobber

## history settings ##
HISTFILE=~/.history_zsh
HISTSIZE=3000
SAVEHIST=3000

# set options
setopt nobeep              # i hate beeps
setopt noautomenu          # don't cycle completions
setopt autocd              # change to dirs without cd
setopt autopushd           # automatically append dirs to the push/pop list
setopt pushdignoredups     # and don't duplicate them
setopt cdablevars          # avoid the need for an explicit $
setopt checkjobs           # warn me about bg processes when exiting
setopt nohup               # and don't kill them, either
setopt listpacked          # compact completion lists
setopt listtypes           # show types in completion
setopt completeinword      # not just at the end
setopt alwaystoend         # when complete from middle, move cursor
setopt correct             # spelling correction
setopt nopromptcr          # don't add \r which overwrites cmd output with no \n
setopt histverify          # when using ! cmds, confirm first
setopt interactivecomments # escape commands so i can use them later
#setopt recexact            # recognise exact, ambiguous matches
#setopt printexitvalue      # alert me if something's failed
setopt glob                # globbing support
setopt extendedglob        # blah blah
setopt nonomatch           # pass through any unrecognized patterns to the command

## set home, end, and delete (these may differ depeding on your system) ##
bindkey "\e[2~" transpose-words
bindkey "\e[3~" delete-char
case $HOSTNAME in (blackmamba)
bindkey "\e[7~" beginning-of-line
bindkey "\e[8~" end-of-line
esac
case $HOSTNAME in (copperhead)
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
esac

## the end ##


Last edited by allucid on Sun Mar 12, 2006 6:32 am; edited 1 time in total
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Fri Feb 04, 2005 5:53 am    Post subject: Reply with quote

I copied those settings, but nothing's changing - only the username and folder are colored, the different files aren't :( Why?
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Fri Feb 04, 2005 6:06 am    Post subject: Reply with quote

cool thread idea. :D i was just getting the urge to reconfigure my term.

i just found the answer to one question that has always driven me absolutely nuts and thought i'd post it here. that question is:

what the hell does 'xgetdefault' do?

Quote:
--enable-xgetdefault
make resources checking via XGetDefault() instead of our small
version which only checks ~/.Xdefaults, or if that doesn't exist
then ~/.Xresources.


http://cvs.schmorp.de/browse/rxvt-unicode/README.configure?rev=1.22

come to think of it, i still have no idea what it does...
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
myles
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2005
Posts: 83

PostPosted: Fri Feb 04, 2005 6:53 am    Post subject: Reply with quote

which terms does at leasst psuedo transparency other than xterm, eterm, and aterm?
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Fri Feb 04, 2005 7:26 am    Post subject: Reply with quote

myles wrote:
which terms does at leasst psuedo transparency other than xterm, eterm, and aterm?
xterm doesn't do psuedo transparency. urxvt and gnome-terminal can.
Back to top
View user's profile Send private message
vivisected
n00b
n00b


Joined: 04 Feb 2005
Posts: 38

PostPosted: Fri Feb 04, 2005 10:09 am    Post subject: Reply with quote

this guy definitely wins for best console (http://xemoka.ath.cx/images/shot.jpg)...
anyone know what font he's using... i need it! :D
Back to top
View user's profile Send private message
VoVaN
l33t
l33t


Joined: 02 Jul 2003
Posts: 701
Location: The Netherlands

PostPosted: Fri Feb 04, 2005 10:23 am    Post subject: Reply with quote

vivisected wrote:
this guy definitely wins for best console (http://xemoka.ath.cx/images/shot.jpg)...
anyone know what font he's using... i need it! :D


Code:
emerge media-fonts/terminus-font 

:wink:
Back to top
View user's profile Send private message
lenk
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 211

PostPosted: Fri Feb 04, 2005 1:41 pm    Post subject: Reply with quote

maybe the moderator can move this thread to OTW.
_________________
E6300 Gigabyte GA-965P-DS3 2GB Corsair 320GB Seagate 7200.10 XFX 7600GT Gentoo
Dell M1330 T7500 2GB 160GB 13.3" WXGA Gentoo
Sharp Zaurus SL-C760 Cacko ROM 1.21b / pdaXrom 1.10rc5 512MB CF + 512MB SD
Sun Ultra5 Gentoo
Back to top
View user's profile Send private message
TheX
Guru
Guru


Joined: 31 Jul 2004
Posts: 349
Location: .de

PostPosted: Fri Feb 04, 2005 2:08 pm    Post subject: Reply with quote

Jeez, this is a thead I love !
Back to top
View user's profile Send private message
lenk
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 211

PostPosted: Sat Feb 05, 2005 5:20 am    Post subject: Reply with quote

bumper to the bump
_________________
E6300 Gigabyte GA-965P-DS3 2GB Corsair 320GB Seagate 7200.10 XFX 7600GT Gentoo
Dell M1330 T7500 2GB 160GB 13.3" WXGA Gentoo
Sharp Zaurus SL-C760 Cacko ROM 1.21b / pdaXrom 1.10rc5 512MB CF + 512MB SD
Sun Ultra5 Gentoo
Back to top
View user's profile Send private message
lenk
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 211

PostPosted: Sun Feb 06, 2005 3:43 pm    Post subject: Reply with quote

bump
_________________
E6300 Gigabyte GA-965P-DS3 2GB Corsair 320GB Seagate 7200.10 XFX 7600GT Gentoo
Dell M1330 T7500 2GB 160GB 13.3" WXGA Gentoo
Sharp Zaurus SL-C760 Cacko ROM 1.21b / pdaXrom 1.10rc5 512MB CF + 512MB SD
Sun Ultra5 Gentoo
Back to top
View user's profile Send private message
myles
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2005
Posts: 83

PostPosted: Sun Feb 06, 2005 10:03 pm    Post subject: Reply with quote

So why are you *BUMP*ing this thread? 8)
Back to top
View user's profile Send private message
dswissmiss
Guru
Guru


Joined: 23 May 2004
Posts: 498
Location: New York

PostPosted: Sun Feb 06, 2005 10:25 pm    Post subject: Reply with quote

I guess you'll get more answeres if you ask people in the screenshot thread to supply you with their terminal configs.
Back to top
View user's profile Send private message
madbiker
Guru
Guru


Joined: 12 Oct 2003
Posts: 439
Location: Victoria, BC, Canada

PostPosted: Thu Feb 10, 2005 9:53 pm    Post subject: Reply with quote

I'm quite happy with my setup. Just tweaked the bold-ness and colors this morning :).
http://members.shaw.ca/madbiker/mrxvt.png

~/,mrxvtrc
Code:
mrxvt*boldColors:               false
mrxvt*xftWeight:                light
mrxvt*veryBoldFont:             false
mrxvt*xftSlowOutput:            true
mrxvt*boldMode:                 false
mrxvt*scrollTtyOutputInhibit:   false
mrxvt*scrollWithBuffer:         true
mrxvt*jumpScroll:               true
mrxvt*multiScroll:              true
mrxvt*vt0*saveLines:            10000
mrxvt*initTermNumber:           1
mrxvt*protectSecondary:         true
mrxvt*loginShell:               true
mrxvt*scrollBar:                false
mrxvt*transparent:              false
mrxvt*transparentScrollbar:     true
mrxvt*transparentTabbar:        false
mrxvt*transparentMenubar:        true
mrxvt*tabPixmap:                false
mrxvt*syncTabTitle:             true
mrxvt*bottomTabbar:             true
mrxvt*windowsSwitch:            false
mrxvt*showMenu:                 false
mrxvt*hideButtons:              true
mrxvt*xft:                      true
mrxvt*xftFont:                  Andale Mono
mrxvt*xftmFont:                 Andale Mono
!mrxvt*xftFont:                         Bitsream Vera Sans
!mrxvt*xftmFont:                Bitstream Vera Sans
mrxvt*xftAntialias:             true
mrxvt*xftHinting:               true
mrxvt*xftAutoHint:              true
mrxvt*xftGlobalAdvance:         true
mrxvt*xftWidth:                 normal
mrxvt*xftRGBA:                  rgb
mrxvt*xftSize:                  11
mrxvt*geometry:                 120x30
!mrxvt*multichar_encoding:      noenc
!mrxvt*inputMethod:             SCIM
mrxvt*cursorBlink:              true
mrxvt*foreground:               black
mrxvt*background:               white
mrxvt*tabForeground:            black
mrxvt*tabBackground:            white
mrxvt*itabForeground:           gray
mrxvt*itabBackground:           white
mrxvt*color0:                   #000000
mrxvt*color1:                   #a33636
mrxvt*color2:                   #558634
mrxvt*color3:                   #968724
mrxvt*color4:                   #2a2a71
mrxvt*color5:                   #962449
mrxvt*color6:                   #248175
mrxvt*color7:                   #6b6b6b
mrxvt*color8:                   #4a4a4a
mrxvt*color9:                   #a33636
mrxvt*color10:                  #83ba30
mrxvt*color11:                  #ccc029
mrxvt*color12:                  #1974be
mrxvt*color13:                  #cf48a0
mrxvt*color14:                  #239494
mrxvt*color15:                  #ffffff
Back to top
View user's profile Send private message
Baltzaar
n00b
n00b


Joined: 16 Feb 2005
Posts: 3

PostPosted: Wed Feb 16, 2005 7:34 pm    Post subject: Reply with quote

Hmm, i would like to change some things in .Xdefaults so that i can use irssi in xterm, but I cant find any .Xdefaults...
Do i have to create one on my own or how does it work? A little guide would be great. I cant write åäö in my aterm, and therefor i have to change terminal... :S
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum