Add: better tomb ls output

This commit is contained in:
mrjk 2018-02-16 02:41:18 -05:00
parent 9dea6bf7ef
commit 3b71430e50

View File

@ -57,6 +57,14 @@ idm_tomb__ls ()
local d_m=
local date_today=$(date '+%s')
echo " Tombs:"
find $IDM_CONFIG_DIR/enc/ -type f -name '*.tomb' -printf "%f (%Tc)\n" |
sed -e 's/^/ /'
idm_tomb_require_enabled $id || return 0
# Calculate data
if [ -d "$git_tomb_dir" ]; then
g_st=open
g_m=$( lib_date_diff_human $(find $git_tomb_dir -maxdepth 0 -printf "%Ts") )
@ -327,8 +335,6 @@ idm_tomb__init()
idm_tomb__sync $id
fi
lib_log NOTICE "Tomb repository has been created"
}
idm_tomb__shred ()