mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-12 00:58:58 -05:00
d4499953cf
Also WMs: clean up application rules
17 lines
295 B
Bash
Executable File
17 lines
295 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Description: View a file in hex
|
|
#
|
|
# Dependencies: hx (https://github.com/krpors/hx)/xxd and $PAGER
|
|
#
|
|
# Shell: POSIX compliant
|
|
# Author: Arun Prakash Jana
|
|
|
|
if [ -n "$1" ]; then
|
|
if type hx >/dev/null 2>&1; then
|
|
hx "$1"
|
|
else
|
|
xxd "$1" | $PAGER
|
|
fi
|
|
fi
|