aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2023-04-28 19:44:47 +0200
committerMartin Polden <mpolden@mpolden.no>2023-04-28 19:57:26 +0200
commitbfa86962ee1e191b5334ebd0dadba46f2e55fcde (patch)
tree165f8827a3d414c4f3273a6b58f273c20cd5c003
parentfb28cd0bf5d579b302275bc43acaf7f9851e0f82 (diff)
zsh: add nfoless alias
-rw-r--r--zsh_aliases5
1 files changed, 5 insertions, 0 deletions
diff --git a/zsh_aliases b/zsh_aliases
index 1773557..e95febf 100644
--- a/zsh_aliases
+++ b/zsh_aliases
@@ -40,6 +40,11 @@ if (( $+commands[apt-mark] )); then
alias apt-leaves='sudo grep -oP "Unpacking \K[^: ]+" /var/log/installer/syslog | sort -u | comm -13 /dev/stdin <(apt-mark showmanual | sort)'
fi
+# Display ANSI art typically found .nfo files correctly
+function nfoless {
+ iconv -f 437 -t utf-8 "$@" | ${PAGER:-less}
+}
+
# Show restic diff for the most recent snapshot. If offset is given, show the
# diff for the nth most recent snapshot instead
function restic-review {