projects
/
config
/
bash.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update bash_prompt
[config/bash.git]
/
.bash
/
aliases.d
/
archives
diff --git
a/.bash/aliases.d/archives
b/.bash/aliases.d/archives
index
b708078
..
bd2a435
100644
(file)
--- a/
.bash/aliases.d/archives
+++ b/
.bash/aliases.d/archives
@@
-7,7
+7,7
@@
then
function gztar()
{
[ -d "$1" ] || { echo "usage: gztar <dir> [tar options]" 1>&2; exit 1; }
function gztar()
{
[ -d "$1" ] || { echo "usage: gztar <dir> [tar options]" 1>&2; exit 1; }
- DIR="$1"
+
local
DIR="$1"
shift
tar "$@" -czvf "$(basename "$DIR").tar.gz" "$DIR"
}
shift
tar "$@" -czvf "$(basename "$DIR").tar.gz" "$DIR"
}
@@
-15,7
+15,7
@@
then
function bztar()
{
[ -d "$1" ] || { echo "usage: bztar <dir> [tar options]" 1>&2; exit 1; }
function bztar()
{
[ -d "$1" ] || { echo "usage: bztar <dir> [tar options]" 1>&2; exit 1; }
- DIR="$1"
+
local
DIR="$1"
shift
tar "$@" -cjvf "$(basename "$DIR").tar.bz2" "$DIR"
}
shift
tar "$@" -cjvf "$(basename "$DIR").tar.bz2" "$DIR"
}
@@
-23,7
+23,7
@@
then
function xztar()
{
[ -d "$1" ] || { echo "usage: xztar <dir> [tar options]" 1>&2; exit 1; }
function xztar()
{
[ -d "$1" ] || { echo "usage: xztar <dir> [tar options]" 1>&2; exit 1; }
- DIR="$1"
+
local
DIR="$1"
shift
tar "$@" -cJvf "$(basename "$DIR").tar.xz" "$DIR"
}
shift
tar "$@" -cJvf "$(basename "$DIR").tar.xz" "$DIR"
}