From d84fbedaf209c9a087badd541d0a026a78769c93 Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Fri, 29 Apr 2016 15:14:20 +0200 Subject: [PATCH] Ajout du shortcut pour xmllint --- .bash_aliases | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index 88544f2..f7b3948 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -13,3 +13,9 @@ _git_add_complete() { complete -F _git_add_complete gg +xmlpretty() { + local ORIGINAL=$1 + local FILENAME=${ORIGINAL%.xml} + local FINAL=${FILENAME##*/} + xmllint --format "$1" --output ${FINAL}.pretty.xml +} \ No newline at end of file