You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*) echo "'$1' cannot be extracted via >extract<" ;;
esac
else
echo "'$1' is not a valid file!"
fi
}
# Creates an archive (*.tar.gz) from given directory.
function maketar() { tar cvzf "${1%%/}.tar.gz" "${1%%/}/"; }
# Creates an archive (*.gz) from given directory.
function makegzip() { gzip -9 "${1%%/}" "${1%%/}/"; }
# Create a ZIP archive of a file or folder.
function makezip() { zip -r "${1%%/}.zip" "$1" ; }
function dirdiff() { local DIFFCMD="diff -rw --exclude=.svn --exclude=.git "; local VIMDIFF="vimdiff"; local DIFFCMD_MINUS="${DIFFCMD:1:-1}"; DIFFCMD_SIZE=${#DIFFCMD_MINUS}; $DIFFCMD $1 $2 | grep "^diff \|^Only in " | sed "s/^d.\{$DIFFCMD_SIZE\}/$VIMDIFF/g"; }