]> gitweb.pimeys.fr Git - config-20-100.git/blobdiff - .bash_aliases
[ssh_config] Factorisation des ilo
[config-20-100.git] / .bash_aliases
index 9d47f3764211a1f025c1dde1ebe10707e01c83ac..74a0af58a0fb0bcee8f71ee9ebd286330ebde923 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'
@@ -53,6 +50,18 @@ alias sshadd='ssh-add -t 1800'
 #~# alias sshimprimante="echo -e 'Port : 2222\nRappel : http://localhost:2222';ssh -L 2222:imprimante.adm.crans.org:80 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 +70,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 +100,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 +130,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 |