all repos — dotfiles-base @ 98caf2e73ce0d48b583d5f3bb4a481bd70a18572

base important configs that can safely be used almost anywhere

.config/fish/functions/bin2hex.fish

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
# Note: has a limit of like 10k or something, I forget
function bin2hex --description ''
    if test (count $argv) -ne 1
        echo "usage: $(status current-command) [path of file to hexdump]"
        return 1
    end

    hexdump -v -e '1/1 "%02x"' "$argv[1]"  # ex. -> 48656c6c6f20...
end