From 4ea49eff69e108bc2de0f1d1ee5a3715209e3782 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sat, 25 Jan 2020 17:01:01 +0000 Subject: [PATCH] Add emacs read-only command --- roles/home-cli/files/shrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/home-cli/files/shrc b/roles/home-cli/files/shrc index fa6836e..e6944f6 100644 --- a/roles/home-cli/files/shrc +++ b/roles/home-cli/files/shrc @@ -209,6 +209,10 @@ lastreboots () { journalctl | grep -A 1 -- '-- Reboot --' | grep -v '^--' | awk '{print $1, $2, $3}' } +eview () { + emacs $1 -f view-mode +} + if [ -x /usr/bin/yum ] && [ ! -x /usr/bin/dnf ]; then alias dnf='yum' fi