diff --git a/bashrc b/bashrc
index 63fbeef..20cd943 100644
--- a/bashrc
+++ b/bashrc
@@ -1,6 +1,9 @@
#####POUR PAS S'ECRIRE DESSUS
shopt -s checkwinsize
+shopt -s histappend
+PROMPT_COMMAND='history -a'
+
#set -o vi
export EDITOR="vim"
#####ON DEFINIT LES COULEURS
@@ -84,14 +87,6 @@ export DEVKITARM=$DEVKITPRO/devkitARM
export PATH=$PATH:$DEVKITARM/bin
export MANPATH=$MANPATH:$DEVKITARM/man
-#####LES FONCTIONS UTILES
-#chope l'adresse IP publique
-function IP()
-{
-echo -e "TON IP: $RED"
-wget -O - -q http://www.monip.net | grep -i "
Your IP is" | awk '{print $4}'
-echo -e "$DFT"
-}
function cd()
{
@@ -102,25 +97,6 @@ function cd()
fi
}
-#change la couleur du load f(sa valeur)
-function load {
- Load=`cat /proc/loadavg | awk '{print $1}'`
- IntLoad=`echo $Load | cut -f1 -d.`
- if [ $IntLoad -le 0 ] ; then
- LoadColor=
- elif [ $IntLoad -le 1 ] ; then
- LoadColor=$BLUE
- elif [ $IntLoad -le 4 ] ; then
- LoadColor=$RED
- else
- LoadColor=$DFT
- fi
-
- echo -e "
- [$LoadColor$Load$DFT]
-"
-}
-
function logs {
tail -f $1 | ccze -A
@@ -130,3 +106,32 @@ function mkcd() {
mkdir -p "$@"
cd "$@"
}
+
+extract() {
+ local e=0 i c
+ for i; do
+ if [ -f $i && -r $i ]; then
+ c=
+ case $i in
+ *.tar.bz2) c='tar xjf' ;;
+ *.tar.gz) c='tar xzf' ;;
+ *.bz2) c='bunzip2' ;;
+ *.gz) c='gunzip' ;;
+ *.tar) c='tar xf' ;;
+ *.tbz2) c='tar xjf' ;;
+ *.tgz) c='tar xzf' ;;
+ *.7z) c='7z x' ;;
+ *.Z) c='uncompress' ;;
+ *.exe) c='cabextract' ;;
+ *.rar) c='unrar x' ;;
+ *.xz) c='unxz' ;;
+ *.zip) c='unzip' ;;
+ *) echo "$0: cannot extract \`$i': Unrecognized file extension" >&2; e=1 ;;
+ esac
+ [ $c ] && command $c "$i"
+ else
+ echo "$0: cannot extract \`$i': File is unreadable" >&2; e=2
+ fi
+ done
+ return $e
+}
diff --git a/install.sh b/install.sh
index 8ab85aa..f89330f 100755
--- a/install.sh
+++ b/install.sh
@@ -6,3 +6,10 @@ cd ~/
ln -s $WAI/bashrc ./.bashrc
ln -s $WAI/vimrc ./.vimrc
ln -s $WAI/gitconfig ./.gitconfig
+ln -s $WAI/xinitrc ./.xinitrc
+
+
+if [ ! -d "~/.ssh" ]; then mkdir .ssh/; fi;
+cd ~/.ssh
+ln -s $WAI/ssh/config ./
+
diff --git a/ssh/config b/ssh/config
new file mode 100644
index 0000000..281fb3d
--- /dev/null
+++ b/ssh/config
@@ -0,0 +1,20 @@
+VisualHostKey=yes
+
+host vi-di.fr
+ port 1337
+host 178.250.210.95
+ port 1337
+host 192.168.42.1
+ port 1337
+host git.vi-di.fr
+ port 1337
+
+host aeipi
+ hostname 129.194.70.30
+ user root
+
+host bor-git
+ hostname 94.23.42.46
+ user git
+ port 55888
+
diff --git a/xinitrc b/xinitrc
new file mode 100644
index 0000000..cbb2ae2
--- /dev/null
+++ b/xinitrc
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+
+if [ -d /etc/X11/xinit/xinitrc.d ]; then
+ for f in /etc/X11/xinit/xinitrc.d/*; do
+ [ -x "$f" ] && . "$f"
+ done
+ unset f
+fi
+
+#exec gnome-session
+while true; do
+ xsetroot -name "$( date +"%F %R" )"
+ sleep 1m # Update time every minute
+done &
+exec /home/frank/Programmation/dwm/dwm
+# exec startkde
+# exec startxfce4
+# ...or the Window Manager of your choice