From c5f1199861b4fcb9b212c0459881326eb980b2e1 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 19 Jan 2021 22:02:22 +0000 Subject: Add merge function --- .config/fish/config.fish | 1 + 1 file changed, 1 insertion(+) (limited to '.config') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 34856b1..c942b3c 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -38,6 +38,7 @@ alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" -- # Functions function fractodec; echo "scale=2; $argv" | bc; end +function mergeinto; rsync --progress --remove-source-files -av "$argv[1]" "$argv[2]" && find "$argv[1]" -empty -delete ; end function sudo; if test "$argv" = !!; eval command sudo $history[1]; else; command sudo $argv; end; end function ytsearch; mpv "ytdl://ytsearch:\"$argv\""; end function split; ffmpeg -i "$argv[1]" -ss "$argv[2]:00" -to "$argv[3]:00" -c copy split-$argv[1]; end -- cgit v1.2.3