Ajout du shortcut pour xmllint

This commit is contained in:
Shikiryu 2016-04-29 15:14:20 +02:00
parent 8b693965b7
commit d84fbedaf2

View File

@ -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
}