]> gitweb.pimeys.fr Git - config-20-100.git/blobdiff - .bash_aliases
[procmailrc] Cosmétique
[config-20-100.git] / .bash_aliases
index 9d47f3764211a1f025c1dde1ebe10707e01c83ac..d3ef170da7ed3905f5ca689b36ddae7df9b6cbbd 100644 (file)
@@ -34,9 +34,6 @@ alias ll='ls -alFh'
 alias la='ls -A'
 alias l='ls -CF'
 
-## Souvenir de Windows
-#alias cd..='cd ..'
-
 # parce que LS/sl c'est cool, mais qu'on veut pouvoir l'interrompre
 alias sl='sl -e'
 alias LS='LS -e'
@@ -50,9 +47,22 @@ 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:o2.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"
 
+
+
+# +------------------+
+# | Fixing mistyping |
+# +------------------+
+#~# # Souvenir de Windows
+#~# alias cd..='cd ..'
+
+#~# alias screen-r='screen -r'
+
+
+
 #~# # +----------------------+
 #~# # | AltGr+Space is wrong |
 #~# # +----------------------+
@@ -61,11 +71,11 @@ alias sshadd='ssh-add -t 1800'
 #~# # Permet d'aliaser les commandes dans lesquelles on pipe usuellement
 #~# # pour qu'elle marche aussi quand elles sont précédées d'une espace insécable.
 #~#
-#~# for commande in grep egrep fgrep wc tail head less
+#~# for commande in grep egrep fgrep wc tail head less sed awk xargs sort uniq sponge
 #~# do
 #~#   alias  $commande=$commande
 #~# done
-
+#~# unset commande
 
 # +--------------------------------------+
 # | Gestion de variables d'environnement |
@@ -91,6 +101,15 @@ alias sshadd='ssh-add -t 1800'
 #~# # Pour que mtr n'utilise pas l'interface graphique
 #~# 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'
+
 # +--------+
 # | Divers |
 # +--------+
@@ -112,6 +131,15 @@ alias pdfpages="find . -name '*.pdf' -exec pdfinfo {} \; | egrep '^Pages'"
 # et pour les sommer
 alias pdfpagessum='pdfpages | awk "{print \$2}" | paste -sd+ | bc'
 
+# Add an "alert" alias for long running commands.  Use like so:
+#   long_command; alert
+alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
+
+# Pour afficher les derniers mails reçus
+# (adapter le path de votre procmail.log si besoin)
+alias tailprocmail='tail -f ~/.procmail/logs/procmail.log'
+
+
 
 # +------------+
 # | Cool stuff |