merge
This commit is contained in:
commit
31d8cb9f13
@ -60,7 +60,7 @@ bind } history
|
|||||||
|
|
||||||
# The vt100 description does not mention "dl". *sigh*
|
# The vt100 description does not mention "dl". *sigh*
|
||||||
termcapinfo vt100 dl=5\E[M
|
termcapinfo vt100 dl=5\E[M
|
||||||
|
# caption always "%3n %t%? (%u)%?%?: %h%?"
|
||||||
# turn sending of screen messages to hardstatus off
|
# turn sending of screen messages to hardstatus off
|
||||||
hardstatus off
|
hardstatus off
|
||||||
# Set the hardstatus prop on gui terms to set the titlebar/icon title
|
# Set the hardstatus prop on gui terms to set the titlebar/icon title
|
||||||
|
1412
.zsh/.zcompdump
Normal file
1412
.zsh/.zcompdump
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
# Lines configured by zsh-newuser-install
|
# Lines configured by zsh-newuser-install
|
||||||
HISTFILE=~/.histfile
|
HISTFILE=~/.histfile
|
||||||
HISTSIZE=1000
|
HISTSIZE=10000
|
||||||
SAVEHIST=1000
|
SAVEHIST=10000
|
||||||
export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
|
export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
|
||||||
export HISTCONTROL=”ignoredups”
|
export HISTCONTROL=”ignoredups”
|
||||||
#export HISTIGNORE=”&:ls:[bf]g:exit”
|
#export HISTIGNORE=”&:ls:[bf]g:exit”
|
||||||
@ -33,7 +33,8 @@ bashcompinit
|
|||||||
# Activate Prompt
|
# Activate Prompt
|
||||||
autoload -U promptinit
|
autoload -U promptinit
|
||||||
promptinit
|
promptinit
|
||||||
prompt bart green red
|
prompt adam1
|
||||||
|
prompt bart
|
||||||
|
|
||||||
|
|
||||||
# pushd pour cd
|
# pushd pour cd
|
||||||
@ -56,6 +57,13 @@ zmodload zsh/complist
|
|||||||
setopt extendedglob
|
setopt extendedglob
|
||||||
zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31"
|
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
|
#menu pour la completion
|
||||||
zstyle ':completion:*' menu select=2
|
zstyle ':completion:*' menu select=2
|
||||||
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
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 la='ls --color=auto -lha'
|
||||||
alias lll='ls --color=auto -lh | less'
|
alias lll='ls --color=auto -lh | less'
|
||||||
alias lsg='ls | grep -i '
|
alias lsg='ls | grep -i '
|
||||||
|
alias ..='cd ..'
|
||||||
|
|
||||||
# couleur affiche dans less ( sarosque )
|
# couleur affiche dans less ( sarosque )
|
||||||
export LESS="$LESS -R"
|
export LESS="$LESS -R"
|
||||||
|
41
.zsh/host:archAres/Environment.zsh
Executable file
41
.zsh/host:archAres/Environment.zsh
Executable 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
68
scripts/getMadame.sh
Executable 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user