Some more new files
This commit is contained in:
parent
879ebe382e
commit
342f79c6c5
4 changed files with 81 additions and 27 deletions
59
bashrc
59
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 "<title>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
|
||||
}
|
||||
|
|
|
@ -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 ./
|
||||
|
||||
|
|
20
ssh/config
Normal file
20
ssh/config
Normal file
|
@ -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
|
||||
|
22
xinitrc
Normal file
22
xinitrc
Normal file
|
@ -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
|
Loading…
Reference in a new issue