bin: path fixes

This commit is contained in:
xeruf 2021-10-31 20:27:18 +01:00
parent 5d8648916e
commit 74db6ce06d
7 changed files with 8 additions and 5 deletions

View File

@ -39,3 +39,4 @@ x-scheme-handler/signalcaptcha=signal.desktop
x-scheme-handler/tg=userapp-Telegram Desktop-HJH4V0.desktop x-scheme-handler/tg=userapp-Telegram Desktop-HJH4V0.desktop
x-scheme-handler/etcher=balena-etcher-electron.desktop x-scheme-handler/etcher=balena-etcher-electron.desktop
x-scheme-handler/jitsi-meet=Jitsi Meet.desktop x-scheme-handler/jitsi-meet=Jitsi Meet.desktop
x-scheme-handler/org-protocol=org-protocol.desktop

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
{ {
echo "$# Args: $@" echo "$# Args: $@"
echo "${@:-default}" | sed 's/\(\w\+\)/\1-w/g' echo "${@:-default}" | sed 's/\w\+/\0-w/g'
#echo "Last arg: ${@:$#}" #echo "Last arg: ${@:$#}"
} | tee /tmp/args$(date +%s) } | tee /tmp/args$(date +%s)

View File

@ -6,7 +6,7 @@ listconf() {
{ cat "$conf_cache"; { cat "$conf_cache";
fd --hidden --type file --size -1m --max-depth 1 . ~; fd --hidden --type file --size -1m --max-depth 1 . ~;
find "${XDG_CONFIG_HOME:-$HOME/.config}" /etc /var/lib/postgres /var/lib/pleroma/static/instance \ find "${XDG_CONFIG_HOME:-$HOME/.config}" /etc /var/lib/postgres /var/lib/pleroma/static/instance \
-maxdepth 4 -follow \( -name Partitions -o -name mdn -o -name .git -o -name .local \) -prune -o \ -maxdepth 4 -follow \( -name Partitions -o -name mdn -o -name .git -o -name .local -o -name plugged \) -prune -o \
! -iname "*.markdown" -a ! -iname "*.md" -a ! -iname "*.org" \ ! -iname "*.markdown" -a ! -iname "*.md" -a ! -iname "*.org" \
-type f -readable -exec grep -lI '' {} + 2>/dev/null; } | dedup -type f -readable -exec grep -lI '' {} + 2>/dev/null; } | dedup
} }

View File

@ -9,7 +9,7 @@ then mp -q "$PLAYLISTS/focus.m3u"
else else
(find -L $PLAYLISTS -iname "focus-$1.m3u" -print0 | grep --null-data . || (find -L $PLAYLISTS -iname "focus-$1.m3u" -print0 | grep --null-data . ||
find -L $PLAYLISTS -iname "$1.m3u*" -print0 | grep --null-data . || find -L $PLAYLISTS -iname "$1.m3u*" -print0 | grep --null-data . ||
find -L $MUSIC -iname "*$1*" -prune -exec find {} -size +2M -type f -not -iregex ".*.\(jpe?g\|png\)" -print0 \; ) | find -L $MUSIC $(echo "$@" | sed 's/\w\+/-iname *\0*/g') -prune -exec find {} -size +2M -type f -not -iregex ".*.\(jpe?g\|png\)" -print0 \; ) |
xargs -0 mp -q xargs -0 mp -q
fi fi
mpc -q shuffle mpc -q shuffle

View File

@ -14,4 +14,3 @@ if test "$OSTYPE" = "cygwin"
then cat "$keys/$name.pub">/dev/clipboard then cat "$keys/$name.pub">/dev/clipboard
else xclip -sel clip 2>/dev/null <"$keys/$name.pub" else xclip -sel clip 2>/dev/null <"$keys/$name.pub"
fi && echo "SSH Public key copied to clipboard" || return 0 fi && echo "SSH Public key copied to clipboard" || return 0

View File

@ -11,7 +11,7 @@ case $1 in
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;; (vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
(gh|chordpro) $@ --help | $paginate;; (gh|chordpro) $@ --help | $paginate;;
(caddy) $1 help ${@:2} | $paginate;; (caddy) $1 help ${@:2} | $paginate;;
(*) man "$@" || { info "$1" -w | grep -v "manpages" && pinfo "$@"; } || ( "$@" --help || "$@" -help ) 2>&1 | $paginate || which "$@";; (*) man "$@" || { info "$1" -w | grep -v "manpages" && pinfo "$@"; } || { "$@" --help || "$@" -help; } 2>&1 | ${PAGER:-less} || which "$@";;
esac esac
docs="/usr/share/doc/$1" docs="/usr/share/doc/$1"
if test -d "$docs"; then if test -d "$docs"; then

3
.local/bin/scripts/lowercase Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
# Lowercase given files
perl-rename 'y/A-Z /a-z-/' "$@"