X-Git-Url: http://gitweb.pimeys.fr/?p=config-20-100.git;a=blobdiff_plain;f=.bash_aliases;h=7ec88c04fdb1c193d32cd310e9c638a0275d791c;hp=8ead57f11ce7fab67ed99c9fd545aff9dc58ab13;hb=HEAD;hpb=d37e6821aede8ccd61dd5c4a21328ca7fbc506ad diff --git a/.bash_aliases b/.bash_aliases index 8ead57f..7ec88c0 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -49,7 +49,8 @@ alias LS='LS -e' alias sshadd='ssh-add -t 1800' # Tunnels (pour les membres actifs) -alias sshimprimante="echo -e 'Port : 2222\nRappel : http://localhost:2222';ssh -L 2222:imprimante.adm.crans.org:80 vo" +alias sshimprimante="echo -e 'Port : 2222\nRappel : https://localhost:2222';ssh -L 2222:imprimante.adm.crans.org:443 vo" +alias sshcups="echo -e 'Port : 3333\nRappel : http://localhost:3333';ssh -L 3333:cups.adm.crans.org:631 vo" alias sshbabar="echo -e 'Port : 3333\nRappel : http://localhost:3333/backuppc';ssh -L 3333:babar.adm.crans.org:80 vo" alias sshomnomnom="echo -e 'Port : 3333\nRappel : http://localhost:3333/backuppc';ssh -L 3333:omnomnom.adm.crans.org:80 vo" @@ -98,7 +99,7 @@ unset commande # Pour loader en mémoire la variable qui empêche less de breaker les lignes # très utile pour les sorties psql -alias exportless="export LESS='-S'" +alias exportless="export LESS='-SR'" # +-------+ @@ -119,6 +120,14 @@ alias mtr='mtr -t' # Pour que les semaines de cal commencent le Lundi alias cal='ncal -bM' +# Hack pour déclencher les hooks sur un dépôt bare git +# (genre git-update-server-info et/ou trigger KGB) +# en faisant un truc bidon et transparent pour l'historique +# (à savoir créer une branche et la supprimer) +alias shakegit='git checkout -b shakegitbranch && git push origin shakegitbranch && git checkout master && git branch -d shakegitbranch && git push origin :shakegitbranch' + +# Pour remplacer les tabs par des espaces sous nano +alias nanotabs='nano -ET4' # +--------+ # | Divers | @@ -150,7 +159,7 @@ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo alias tailprocmail='tail -f ~/.procmail/logs/procmail.log' # Pour réveiller la carte éthernet quand elle déconne -alias rebooteth0='rmmod atl1c; modprobe atl1c' +alias rebooteth0='rmmod atl1c; rmmod ath9k; modprobe atl1c; modprobe ath9k' # +------------+ @@ -175,3 +184,6 @@ alias tailftp='tail -n 100 -f /var/log/pure-ftpd/transfer.log | /home/vincent/sc # backup-manager alias uploadbackups='backup-manager --upload' + +# xclip fout pas dans le bon presse-papier par défaut +alias xclip='xclip -selection clipboard'