diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-05-22 08:05:23 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-05-22 08:05:23 +0200 |
commit | f5e8a5c13c10dd93d614dea2530877ef48071a22 (patch) | |
tree | d9119cd317eb235fdbb5229db71ed45b8d833ba3 /bin | |
parent | eaf4ca6b91de4e3efceb092a17b97503cdaa05cd (diff) | |
download | dotfiles-f5e8a5c13c10dd93d614dea2530877ef48071a22.tar.gz dotfiles-f5e8a5c13c10dd93d614dea2530877ef48071a22.zip |
Update neovim, tweak some things
Diffstat (limited to 'bin')
-rw-r--r-- | bin/autoclean.sh.m4 | 8 | ||||
-rwxr-xr-x | bin/cd-archive | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bin/autoclean.sh.m4 b/bin/autoclean.sh.m4 new file mode 100644 index 0000000..7a24436 --- /dev/null +++ b/bin/autoclean.sh.m4 @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "[$(date)] Running cleaning routine" +set -o pipefail +set -x + +max_age_days=5 +find "DT_HOME_DIRECTORY/Downloads/" -mtime +${max_age_days} -delete diff --git a/bin/cd-archive b/bin/cd-archive index ff152bd..99b0c79 100755 --- a/bin/cd-archive +++ b/bin/cd-archive @@ -1,5 +1,5 @@ #!/bin/bash -ARCHIVE="${HOME}/Nextcloud" +ARCHIVE="${HOME}/_library" D1=$(find "${ARCHIVE}" -maxdepth 1 -type d -regextype posix-extended -regex "${ARCHIVE}/[0-9]-.*") D2=$(find "${ARCHIVE}" -maxdepth 2 -type d -regextype posix-extended -regex "${ARCHIVE}/[0-9]+-[^/]+/[0-9]{3}-.*") |