Major chhanges: daisy.source renamed to ld.source.
All files have been prettified by making sure we use 2-space indent. agenda: Instead of the hidden .tree file, a file created "More..." is made. You can use (ex) "agenda --view "2026" to get a full list of files from that year/date/day. Additionally, minor fixes have been made. clip: You can now use "-c" to clear the clipbaord.
This commit is contained in:
parent
056ab01ed4
commit
ab730db2f7
14 changed files with 264 additions and 534 deletions
11
cdz
11
cdz
|
|
@ -4,19 +4,20 @@
|
|||
if [[ $LD_INTERNAL -ne 1 ]]
|
||||
then
|
||||
LD_INTERNAL=1
|
||||
. $(dirname $(realpath $0))/daisy.source
|
||||
. $(dirname $(realpath $0))/ld.source
|
||||
fi
|
||||
|
||||
is_archive()
|
||||
{
|
||||
local file="$1"
|
||||
local mime_type=$(file --mime-type -b "$file")
|
||||
|
||||
if [[ $mime_type == *"tar"* || $file == *.tar* || $mime_type == "application/zip" || $mime_type == "application/x-rar" ]]
|
||||
|
||||
if [[ $mime_type == *"tar"* || $file == *.tar* || \
|
||||
$mime_type == "application/zip" || $mime_type == "application/x-rar" ]]
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
if command -v archivemount >/dev/null 2>&1
|
||||
then
|
||||
local test_dir=$(mktemp -d /tmp/cdz_check.XXXXXXXX)
|
||||
|
|
@ -29,7 +30,7 @@ is_archive()
|
|||
rmdir "$test_dir"
|
||||
return $result
|
||||
fi
|
||||
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue