From aa4755f9268ffa3c994c7228fec7c9344be6bd97 Mon Sep 17 00:00:00 2001 From: Peter Date: Tue, 2 Nov 2021 00:10:58 +0000 Subject: Additional functions --- .config/fish/config.fish | 2 ++ 1 file changed, 2 insertions(+) (limited to '.config/fish') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index df4e92c..e70a4be 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -45,12 +45,14 @@ alias vaultedit='find "$SYNCDIR" -maxdepth 5 -type f | fzf --preview "cat {}" -- function cheat; curl -s "http://cheat.sh/$argv"; end function fractodec; math -s2 "$argv" ; end function hextodec; math "0x$argv" ; end +function macaddr; printf "%s\n" (curl -s https://api.macvendors.com/$argv); end function mergeinto; rsync --progress --remove-source-files -av "$argv[1]" "$argv[2]" && find "$argv[1]" -empty -delete ; end function mount-rw; sudo mount -o rw "$argv[1]" "$argv[2]"; end function sessionexec; awk -v site="$argv[1]" '$0~site {print $2}' "$XDG_DATA_HOME/qutebrowser/sessions/default.yml"; end function split; ffmpeg -i "$argv[1]" -ss "$argv[2]" -to "$argv[3]" -c copy split-$argv[1]; end function sudo; if test "$argv" = !!; eval command sudo $history[1]; else; command sudo $argv; end; end function vat; math "$argv + ($argv * 0.2)"; end +function wallet; rbw get "2miners" | atto "$argv"; end function ytsearch; mpv "ytdl://ytsearch:\"$argv\""; end # Rclone config symlink -- cgit v1.2.3