Commits

Bruce Wang committed 5bd390d

add missing desktop

  • Participants
  • Parent commits ca79c8c

Comments (0)

Files changed (4)

File dot.zshrc.orig

+# history
+HISTFILE=~/.zsh_history
+HISTSIZE=5000
+SAVEHIST=1000
+setopt appendhistory autocd extendedglob
+
+# default apps
+(( ${+BROWSER} )) || export BROWSER="firefox-nightly";
+  (( ${+PAGER} ))   || export PAGER="less";
+
+setopt MENUCOMPLETE
+
+
+# Some options..
+setopt   notify globdots pushdtohome cdablevars autolist
+setopt   correctall autocd recexact longlistjobs
+setopt   autoresume histignoredups pushdsilent 
+setopt   autopushd pushdminus extendedglob rcquotes mailwarning
+unsetopt bgnice autoparamslash
+
+
+# prompt (if running screen, show window #)
+if [ x$WINDOW != x ]; then
+    PROMPT="$WINDOW:%~"
+else
+    PROMPT='%~'
+fi
+
+setopt ALL_EXPORT
+autoload colors zsh/terminfo
+if [[ "$terminfo[colors]" -ge 8 ]]; then
+   colors
+fi
+for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
+   eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
+   eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
+   (( count = $count + 1 ))
+done
+PR_NO_COLOR="%{$terminfo[sgr0]%}"
+PS1="[ $PR_RED$PROMPT$PR_NO_COLOR ]%(!.#.$) "
+RPS1="$PR_LIGHT_YELLOW(%D{%m-%d %H:%M})$PR_NO_COLOR"
+
+# Shell options
+TIMEFMT=$'real\t%*Es\nuser\t%*Us\nsys \t%*Ss\ncpu \t%P'
+
+unsetopt ALL_EXPORT
+
+# format titles for screen and rxvt
+function title() {
+  # escape '%' chars in $1, make nonprintables visible
+  a=${(V)1//\%/\%\%}
+
+  # Truncate command, and join lines.
+  a=$(print -Pn "%40>...>$a" | tr -d "\n")
+
+  case $TERM in
+  screen)
+    print -Pn "\ek$a:$3\e\\"      # screen title (in ^A")
+    ;;
+  xterm*|rxvt)
+    print -Pn "\e]2;$a$3 | $2\a" # plain xterm title
+    ;;
+  esac
+}
+
+# precmd is called just before the prompt is printed
+function precmd() {
+  title "zsh" "$USER@%m" "%55<...<%~"
+}
+
+# preexec is called just before any command line is executed
+function preexec() {
+  title "$1" "$USER@%m" "%35<...<%~"
+}
+
+# vi editing
+bindkey -v
+bindkey '^[OH' beginning-of-line
+bindkey '^[OF' end-of-line
+bindkey '^[[5~' up-line-or-history
+bindkey '^[[6~' down-line-or-history
+bindkey ' ' magic-space    # also do history expansion on space
+bindkey '^I' complete-word # complete on tab, leave expansion to _expand
+
+# colorful listings
+zmodload -i zsh/complist
+
+autoload -U compinit
+compinit
+zstyle ':completion::complete:*' use-cache on
+zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
+
+zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
+zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
+zstyle ':completion:*' menu select=1 _complete _ignored _approximate
+zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
+
+# Completion Styles
+
+# list of completers to use
+# n:*' list-prompt '%SAt %p: Hit TAB for more, or the charac    ter to insert%s'
+zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
+# match uppercase from lowercase
+zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
+
+# offer indexes before parameters in subscripts
+zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
+zstyle ':completion:*' hosts $(awk '/^[^#]/ {print $2 $3" "$4" "$5}' /etc/hosts | grep -v ip6- && grep "^#%" /etc/hosts | awk -F% '{print $2}') 
+# Filename suffixes to ignore during completion (except after rm command)
+zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
+    '*?.old' '*?.pro'
+
+# SSH Completion
+zstyle ':completion:*:scp:*' tag-order \
+   files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
+zstyle ':completion:*:scp:*' group-order \
+   files all-files users hosts-domain hosts-host hosts-ipaddr
+zstyle ':completion:*:ssh:*' tag-order \
+   users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
+zstyle ':completion:*:ssh:*' group-order \
+   hosts-domain hosts-host users hosts-ipaddr
+zstyle '*' single-ignored show
+
+# more completion for ssh, ftp, sftp, etc.
+hosts=(bruce@degree bruce@degree-pub bruce@trac2 bruce@db2 number5@hg.simpleisgood.org )
+compctl -k hosts ssh sftp
+
+
+
+# aliases
+alias mv='nocorrect mv'       # no spelling correction on mv
+alias cp='nocorrect cp'
+alias mkdir='nocorrect mkdir'
+alias j=jobs
+if ls -F --color=auto >&/dev/null; then
+  alias ls="ls --color=auto -F"
+else
+  alias ls="ls -F"
+fi
+alias ll="ls -l"
+alias l.='ls -d .[^.]*'
+alias lsd='ls -ld *(-/DN)'
+alias md='mkdir -p'
+alias rd='rmdir'
+alias cd..='cd ..'
+alias ..='cd ..'
+alias po='popd'
+alias pu='pushd'
+alias tsl="tail -f /var/log/syslog"
+alias df="df -hT"
+alias em="emacs -nw"
+
+# functions
+mdc() { mkdir -p "$1" && cd "$1" }
+setenv() { export $1=$2 }  # csh compatibility
+sdate() { date +%Y.%m.%d }
+pc() { awk "{print \$$1}" }
+rot13 () { tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]" }
+
+# shuffle input lines. Nice for mp3 playlists etc...
+shuffle() {
+  RANDOM=`date +%s`
+  (
+  while IFS= read -r i; do
+    echo $RANDOM$RANDOM "$i";
+  done
+  ) | sort | sed 's/^[0-9]* //'
+}
+
+export TD="$HOME/temp/`date +'%Y-%m-%d'`"
+td(){
+    td=$TD
+    if [ ! -z "$1" ]; then
+        td="$HOME/temp/`date -d "$1 days" +'%Y-%m-%d'`";
+    fi  
+    mkdir -p $td; cd $td 
+    unset td
+}
+
+
+alias vi='vim'
+alias x='startxfce4'
+
+export EDITOR=vi
+export PATH=~/bin:$PATH

File settings/desktop/backdrops.list

+# xfce backdrop list
+/mnt/fun/system_backup/ToRead/00423_polynesian_1920x1200.jpg
+/mnt/fun/system_backup/ToRead/00610_peace_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/00715_driftin_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/00725_colourfulafternoon_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/00848_watervague_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/00962_themaldives_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/01080_creteclifs_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/01108_yaquinaheadlighthouse_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/01311_shinysky_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/01318_lakeofdreams_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/01319_glaciercanyon_1280x1024.jpg
+/mnt/fun/system_backup/ToRead/clouds01_1680x1050.jpg
+/home/bruce/arts/Broadway_tower_edit.jpg
+/home/bruce/arts/Glarus_Kloentalersee.jpg
+/home/bruce/arts/New_York_City_at_night_HDR.jpg
+/home/bruce/arts/01393_silenceii_1400x1050.jpg
+/home/bruce/arts/01481_broadway_1400x1050.jpg
+/home/bruce/arts/01484_curacaofromabove_1400x1050.jpg
+/home/bruce/arts/01492_lastlight_1400x1050.jpg
+/home/bruce/arts/01500_iceonthelake_1400x1050.jpg
+/home/bruce/arts/01505_bostonskyline_1400x1050.jpg
+/home/bruce/arts/01506_moodywaters_1400x1050.jpg
+/home/bruce/arts/01507_ataqamountain_1400x1050.jpg
+/home/bruce/arts/01508_paradise_1400x1050.jpg
+/home/bruce/arts/01510_sunsetbeach_1400x1050.jpg
+/home/bruce/arts/01512_portdonegalireland_1400x1050.jpg
+/home/bruce/arts/01515_santacruzharborlighthouse_1400x1050.jpg
+/home/bruce/arts/01667_justanothersunset_1400x1050.jpg
+/home/bruce/arts/01664_seastone_320x240.jpg
+/home/bruce/arts/01664_seastone_1400x1050.jpg
+/home/bruce/arts/01663_lakelouise_1400x1050.jpg
+/home/bruce/arts/01662_lulworthcove_320x240.jpg
+/home/bruce/arts/01662_lulworthcove_1400x1050.jpg
+/home/bruce/arts/01661_privatedocksunset_320x240.jpg
+/home/bruce/arts/01661_privatedocksunset_1400x1050.jpg
+/home/bruce/arts/01658_mirrorglasspond_1400x1050.jpg
+/home/bruce/arts/01644_portlandlayers_1400x1050.jpg
+/home/bruce/arts/01624_thecityofathousandminaret_1400x1050.jpg
+/home/bruce/arts/nanpu_bridge_HDR.jpg
+/home/bruce/arts/01492_lastlight_1400x1050.jpg
+/home/bruce/arts/01393_silenceii_1400x1050.jpg
+/home/bruce/arts/01484_curacaofromabove_1400x1050.jpg
+/home/bruce/arts/01481_broadway_1400x1050.jpg
+/home/bruce/arts/01515_santacruzharborlighthouse_1400x1050.jpg
+/home/bruce/arts/01512_portdonegalireland_1400x1050.jpg
+/home/bruce/arts/01507_ataqamountain_1400x1050.jpg
+/home/bruce/arts/01505_bostonskyline_1400x1050.jpg
+/home/bruce/arts/01506_moodywaters_1400x1050.jpg
+/home/bruce/arts/01500_iceonthelake_1400x1050.jpg
+/home/bruce/arts/01510_sunsetbeach_1400x1050.jpg
+/home/bruce/arts/01508_paradise_1400x1050.jpg
+/home/bruce/arts/New_York_City_at_night_HDR.jpg
+/home/bruce/arts/Glarus_Kloentalersee.jpg
+/home/bruce/arts/Broadway_tower_edit.jpg

File settings/desktop/icons.screen0.rc

+[Dark3]
+row=0
+col=4
+
+[IELTS.Pack]
+row=1
+col=1
+
+[IELTS_Practice_Tests_Plus.rar]
+row=7
+col=1
+
+[wp_brucewang_wp_20071227_198.sql.gz]
+row=6
+col=0
+
+[art7plus.pdf]
+row=1
+col=2
+
+[IDC配置.xls]
+row=5
+col=1
+
+[data]
+row=0
+col=2
+
+[slow.20080621.tar.bz2]
+row=6
+col=2
+
+[Photos]
+row=3
+col=0
+
+[wu.la.odp]
+row=7
+col=3
+
+[spe986.pdf]
+row=2
+col=3
+
+[Guy.Steele.Growing.A.Language.pdf]
+row=3
+col=3
+
+[PyIterGen.pdf]
+row=4
+col=4
+
+[Generators.pdf]
+row=4
+col=3
+
+[Bookmarks 2008-04-18.json]
+row=2
+col=0
+
+[backpack-2008-02-23.xml]
+row=5
+col=0
+
+[google_whitepaper.pdf]
+row=3
+col=2
+
+[R&D薪资和IDC费用预算.xls]
+row=0
+col=1
+
+[All Your Bases.pdf]
+row=8
+col=0
+
+[Internet Explorer 6.0]
+row=0
+col=3
+
+[data.rar]
+row=2
+col=4
+
+[ColorZilla_1.9.xpi]
+row=5
+col=2
+
+[Javascript.The.Good.Parts]
+row=4
+col=0
+
+[Microsoft Reader]
+row=0
+col=0
+
+[incoming]
+row=1
+col=4
+
+[pycon2008-advanced-sa]
+row=1
+col=3
+
+[osgi]
+row=8
+col=1
+
+[wu.la.ppt]
+row=8
+col=3
+
+[Kingston]
+row=7
+col=0
+
+[File System]
+row=1
+col=0
+
+[Home]
+row=1
+col=5
+
+[Trash]
+row=9
+col=1
+

File settings/desktop/menu.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<xfdesktop-menu>
+	<title name="Desktop Menu" icon="xfce4-backdrop"/>
+	<separator/>
+	<app name="Run Program..." cmd="xfrun4" icon="gnome-fs-executable"/>
+	<separator/>
+	<app name="Terminal" cmd="xfterm4" icon="gnome-terminal"/>
+	<app name="File Manager" cmd="thunar" icon="file-manager"/>
+	<app name="Web Browser" cmd="xfbrowser4" icon="gnome-globe"/>
+	<separator/>
+	<menu name="Settings" icon="gnome-settings">
+		<app name="Settings Manager" cmd="xfce-setting-show" icon="gnome-settings" snotify="true"/>
+	</menu>
+	<separator/>
+	<include type="system" style="simple" unique="true" legacy="true"/>
+	<separator/>
+	<app name="Help" cmd="xfhelp4" icon="gnome-help"/>
+	<app name="About Xfce" cmd="xfce4-about"/>
+	<builtin name="Quit" cmd="quit" icon="gnome-logout"/>
+</xfdesktop-menu>