This commit is contained in:
Mathieu Maret 2010-03-02 09:37:38 +01:00
commit 31d8cb9f13
5 changed files with 1534 additions and 4 deletions

View File

@ -60,7 +60,7 @@ bind } history
# The vt100 description does not mention "dl". *sigh*
termcapinfo vt100 dl=5\E[M
# caption always "%3n %t%? (%u)%?%?: %h%?"
# turn sending of screen messages to hardstatus off
hardstatus off
# Set the hardstatus prop on gui terms to set the titlebar/icon title

1412
.zsh/.zcompdump Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
HISTSIZE=10000
SAVEHIST=10000
export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
export HISTCONTROL=”ignoredups”
#export HISTIGNORE=”&:ls:[bf]g:exit”
@ -33,7 +33,8 @@ bashcompinit
# Activate Prompt
autoload -U promptinit
promptinit
prompt bart green red
prompt adam1
prompt bart
# pushd pour cd
@ -56,6 +57,13 @@ zmodload zsh/complist
setopt extendedglob
zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31"
#completion des hosts avec le contenue de know_hosts
#local _myhosts
#if [[ -f $HOME/.ssh/known_hosts ]]; then
# _myhosts=( ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*} )
# zstyle ':completion:*' hosts $_myhosts
#fi
#menu pour la completion
zstyle ':completion:*' menu select=2
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
@ -67,6 +75,7 @@ alias ll='ls --color=auto -lh'
alias la='ls --color=auto -lha'
alias lll='ls --color=auto -lh | less'
alias lsg='ls | grep -i '
alias ..='cd ..'
# couleur affiche dans less ( sarosque )
export LESS="$LESS -R"

View File

@ -0,0 +1,41 @@
#export http_proxy="http://grp-horus:3128"
#export https_proxy="http://grp-horus:3128"
#export ftp_proxy="http://grp-horus:3128"
#Java And Android Env
export ECLIPSE_HOME=/home/mathieu/Outils/eclipse
#Perso Bin
export PATH=$HOME/bin/bin:$HOME/bin:$PATH
export EDITOR=/usr/bin/vim
#export http_proxy="http://grp-horus:3128"
#export https_proxy="http://grp-horus:3128"
#export ftp_proxy="http://grp-horus:3128"
export ANDROID_DIR=/home/mathieu/android/android-sdk-linux_x86-1.5_r1
export ANDROID_HOME=/home/mathieu/android/android-sdk-linux
export ANDROID_SKD=/home/mathieu/android/android-sdk-linux/platforms/android-1.6
#export PATH=$ANDROID_DIR/tools:$PATH
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export CATALINA_HOME=/usr/share/tomcat6
export PATH=$JAVA_HOME/bin/:$ANDROID_HOME/tools:$ANDROID_SKD/tools:$ECLIPSE_HOME:$PATH
#emacsAndViKeys
#bindkey -v
#bindkey "^P" vi-up-line-or-history
#bindkey "^N" vi-down-line-or-history
#
#bindkey "^[[1~" vi-beginning-of-line # Home
#bindkey "^[[4~" vi-end-of-line # End
#bindkey '^[[2~' beep # Insert
#bindkey '^[[3~' delete-char # Del
#bindkey '^[[5~' vi-backward-blank-word # Page Up
#bindkey '^[[6~' vi-forward-blank-word # Page Down
# make ctrl-r working
#bindkey -M viins '^r' history-incremental-search-backward
#bindkey -M vicmd '^r' history-incremental-search-backward

68
scripts/getMadame.sh Executable file
View File

@ -0,0 +1,68 @@
#!/bin/bash
###########################################
#
# Get the daily picture from http://www.bonjourmadame.fr on your desktop
#
# Author : Magetys
# Link : http://www.magetys.com
# Version : 1.0.1
# Dependency : libnotify-bin
# Note : Works on Gnome and Xfce
#
###########################################
function chkinternet {
if [ `wget -q -O - google.com | grep -c "<title>Google</title>"` != 0 ]
then
echo 1
else
echo 0
fi
}
function fixdbus {
export DISPLAY=0
while read line
do
echo $line | grep -vqe "^#"
if [ $? -eq 0 ]; then export $line; fi
done < ~/.dbus/session-bus/$(cat /var/lib/dbus/machine-id)-$DISPLAY
echo Dbus fixed OK
}
# please install libnotify-bin to popup notification
function notify {
if [[ -e /usr/bin/notify-send ]]
then
notify-send "Bonjour $USER" "Je suis arrivee sur ton bureau" -i $todaywp
fi
}
fileprefix=$HOME/Images/bonjourmadame-wp-
todaywp=$fileprefix$(date +%y-%m-%d-%H-%M).jpg
while [ $(chkinternet) != "1" ]; do sleep 15; done
echo Internet connection OK
wget -O - http://www.bonjourmadame.fr | grep -Eo "(http://www.bonjourmadame.fr/photo/[^\"]+)|(http://[0-9]+.media.tumblr.com/tumblr[^\"]+)" | head -n 1 | wget -q -i - -O $todaywp
echo Photo downloaded OK
ls $fileprefix* | sort -r | tail -n +2 | xargs rm -f
fixdbus
if [[ -e /usr/bin/xfconf-query ]]
then
xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s $todaywp
elif [[ -e /usr/bin/gconftool-2 ]]
then
gconftool-2 --type string --set /desktop/gnome/background/picture_filename $todaywp
fi
notify