diff options
author | Peter | 2021-11-02 00:10:58 +0000 |
---|---|---|
committer | Peter | 2021-11-02 00:10:58 +0000 |
commit | aa4755f9268ffa3c994c7228fec7c9344be6bd97 (patch) | |
tree | 37c2b359b9aff75f9154a76481ab6dfadb044c32 /.config/fish/config.fish | |
parent | 9dcd8d1e05805b67f5d157260e0561f964805e11 (diff) | |
download | dotfiles-aa4755f9268ffa3c994c7228fec7c9344be6bd97.tar.gz dotfiles-aa4755f9268ffa3c994c7228fec7c9344be6bd97.tar.bz2 dotfiles-aa4755f9268ffa3c994c7228fec7c9344be6bd97.zip |
Additional functions
Diffstat (limited to '.config/fish/config.fish')
-rw-r--r-- | .config/fish/config.fish | 2 |
1 files changed, 2 insertions, 0 deletions
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 |