From c9a4fcde740dfff41e6318a4ccb43d31b353383f Mon Sep 17 00:00:00 2001 From: Daniel Demus Date: Mon, 13 Jan 2025 11:22:52 +0100 Subject: [PATCH] Add 'lowdown -t term' alias --- demus-profile-scripts.spec | 6 ++++-- lowdown-term.sh | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 lowdown-term.sh diff --git a/demus-profile-scripts.spec b/demus-profile-scripts.spec index cec68c4..025f7ce 100644 --- a/demus-profile-scripts.spec +++ b/demus-profile-scripts.spec @@ -1,11 +1,12 @@ Name: demus-profile-scripts -Version: 0.1.0 +Version: 0.2.0 Release: %autorelease Summary: Bash profile customisations License: GPL3 Source0: bash-completion-ignore-case.sh Source1: less-syntax-highlight.sh +Source2: lowdown-term.sh Requires: bash @@ -17,14 +18,15 @@ Some bash customizations %prep cp %{SOURCE0} bash-completion-ignore-case.sh cp %{SOURCE1} less-syntax-highlight.sh +cp %{SOURCE2} lowdown-term.sh %build - %install mkdir -p %{buildroot}%{_sysconfdir}/profile.d install -p -m 755 -t %{buildroot}%{_sysconfdir}/profile.d bash-completion-ignore-case.sh install -p -m 755 -t %{buildroot}%{_sysconfdir}/profile.d less-syntax-highlight.sh +install -p -m 755 -t %{buildroot}%{_sysconfdir}/profile.d lowdown-term.sh %files %{_sysconfdir}/profile.d diff --git a/lowdown-term.sh b/lowdown-term.sh new file mode 100644 index 0000000..13e3fa7 --- /dev/null +++ b/lowdown-term.sh @@ -0,0 +1,2 @@ +# Alias to always output -t term formatted lowdown instead of html (!?!?) +alias ldt='lowdown -t term'