diff options
Diffstat (limited to 'config/essentials/shell')
| -rw-r--r-- | config/essentials/shell/aliases.sh | 1 | ||||
| -rw-r--r-- | config/essentials/shell/functions.sh | 7 | 
2 files changed, 8 insertions, 0 deletions
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh index a8b9036..be35a6c 100644 --- a/config/essentials/shell/aliases.sh +++ b/config/essentials/shell/aliases.sh @@ -339,6 +339,7 @@ alias ddeps='pactree -r -d 1'  alias update-mirrors='reflector -p https | rankmirrors -n 10 -p -w - | doas tee /etc/pacman.d/mirrorlist'  alias tmpd='cd $(mktemp -d)' +alias tmpf='$EDITOR $(mktemp)'  alias brs='$BROWSER'  which bat > /dev/null 2>&1 &&      alias cat="bat -p" diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index b69b775..945b716 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -241,6 +241,7 @@ pacsize()  mime-default ()  { +	mime=      [ "${mime:=$1}" ] ||          mime="$(find /usr/share/applications/ -iname '*.desktop' -printf '%f\n' |              sed 's/\.desktop$//' | @@ -364,3 +365,9 @@ ssh_port()      ssh -f -N -L 0.0.0.0:"$3":localhost:"$1" "$2"      >&2 printf "Forwarded port '%s' on '%s' to '%s'.\n" "$1" "$2" "$3"  } +ffconcat () { +	tmp=$(mktemp -p . ffconcat.XXXXX)  +	sed 's/.*/file &/' > "$tmp" +	ffmpeg -y -f concat -safe 0 -i $tmp -c copy "$1" +	rm $tmp +}  | 
