bin: path fixes
This commit is contained in:
parent
5d8648916e
commit
74db6ce06d
|
@ -39,3 +39,4 @@ x-scheme-handler/signalcaptcha=signal.desktop
|
|||
x-scheme-handler/tg=userapp-Telegram Desktop-HJH4V0.desktop
|
||||
x-scheme-handler/etcher=balena-etcher-electron.desktop
|
||||
x-scheme-handler/jitsi-meet=Jitsi Meet.desktop
|
||||
x-scheme-handler/org-protocol=org-protocol.desktop
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
{
|
||||
echo "$# Args: $@"
|
||||
echo "${@:-default}" | sed 's/\(\w\+\)/\1-w/g'
|
||||
echo "${@:-default}" | sed 's/\w\+/\0-w/g'
|
||||
#echo "Last arg: ${@:$#}"
|
||||
} | tee /tmp/args$(date +%s)
|
||||
|
|
|
@ -6,7 +6,7 @@ listconf() {
|
|||
{ cat "$conf_cache";
|
||||
fd --hidden --type file --size -1m --max-depth 1 . ~;
|
||||
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" \
|
||||
-type f -readable -exec grep -lI '' {} + 2>/dev/null; } | dedup
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ then mp -q "$PLAYLISTS/focus.m3u"
|
|||
else
|
||||
(find -L $PLAYLISTS -iname "focus-$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
|
||||
fi
|
||||
mpc -q shuffle
|
||||
|
|
|
@ -14,4 +14,3 @@ if test "$OSTYPE" = "cygwin"
|
|||
then cat "$keys/$name.pub">/dev/clipboard
|
||||
else xclip -sel clip 2>/dev/null <"$keys/$name.pub"
|
||||
fi && echo "SSH Public key copied to clipboard" || return 0
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ case $1 in
|
|||
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
|
||||
(gh|chordpro) $@ --help | $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
|
||||
docs="/usr/share/doc/$1"
|
||||
if test -d "$docs"; then
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
# Lowercase given files
|
||||
perl-rename 'y/A-Z /a-z-/' "$@"
|
Loading…
Reference in New Issue