mirror of
https://github.com/jarun/nnn.git
synced 2024-11-19 17:39:14 +00:00
Add user script to view files in hex
This commit is contained in:
parent
00f1857099
commit
144682ad49
|
@ -5,6 +5,7 @@
|
|||
| copier | Copy selection to clipboard |
|
||||
| edit | Fuzzy find a file in directory subtree with fzy and edit in vim |
|
||||
| fzy | Fuzzy find a file in directory subtree with fzy and open using xdg-open |
|
||||
| hexview | view a file in hex; needs xxd and $PAGER |
|
||||
| imgur | Upload an image file to imgur |
|
||||
| kdeconnect | Send selected files to Android device using kdeconnect-cli |
|
||||
| ndiff | File and directory diff for selection using vimdiff |
|
||||
|
|
11
user-scripts/hexview
Executable file
11
user-scripts/hexview
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
# Description: View a file in hex
|
||||
# Requires: xxd and $PAGER
|
||||
#
|
||||
# Shell: POSIX compliant
|
||||
# Author: Arun Prakash Jana
|
||||
|
||||
if ! [ -z "$1" ]; then
|
||||
xxd "$1" | "$PAGER"
|
||||
fi
|
Loading…
Reference in a new issue