diff --git a/.config/doom/config.el b/.config/doom/config.el index 9f0e9f0..654269f 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -453,7 +453,6 @@ Version 2019-11-04 2021-02-16" (use-package! ox-context :after ox) - (use-package! ox-extra :after ox :config (ox-extras-activate '(ignore-headlines)) ;; use tag :ignore: to export content without headline diff --git a/.local/bin/scripts/b b/.local/bin/scripts/b index 610d2e3..244c58f 100755 --- a/.local/bin/scripts/b +++ b/.local/bin/scripts/b @@ -79,7 +79,9 @@ for arg; do (*\ image/*) timg+=("$arg"); continue;; (*\ inode/directory\;*) - ls+=("$arg"); continue;; + ls+=("$arg") + test -L "$arg" || continue + ;; (*) case "$(file "$arg")" in (*\ ?udio*) diff --git a/.local/bin/scripts/rd b/.local/bin/scripts/rd index 0e1cbb8..45fde26 100755 --- a/.local/bin/scripts/rd +++ b/.local/bin/scripts/rd @@ -3,7 +3,7 @@ case "$1" in ([0-9]) depth=$1; shift;; esac for f in "${@-.}" do - test -w "$f" && elevate="" || elevate=sudo + test -w "$(dirname "$f")" && elevate="" || elevate=sudo if test -d "$f" then if test -e "$f/.git" || test -e "$f/packed-refs"