Add cd.. alias and comments

This commit is contained in:
2025-02-10 21:30:03 +01:00
parent c9a4fcde74
commit e744ae0aa6
4 changed files with 8 additions and 1 deletions
+1
View File
@@ -1 +1,2 @@
# Always ignore case in bash completion
set completion-ignore-case on
+2
View File
@@ -0,0 +1,2 @@
# Prevent the irritating cd.. no such command wait
alias cd..='cd ..'
+4 -1
View File
@@ -1,5 +1,5 @@
Name: demus-profile-scripts
Version: 0.2.0
Version: 0.3.0
Release: %autorelease
Summary: Bash profile customisations
@@ -7,6 +7,7 @@ License: GPL3
Source0: bash-completion-ignore-case.sh
Source1: less-syntax-highlight.sh
Source2: lowdown-term.sh
Source3: cd-dot-dot.sh
Requires: bash
@@ -19,6 +20,7 @@ Some bash customizations
cp %{SOURCE0} bash-completion-ignore-case.sh
cp %{SOURCE1} less-syntax-highlight.sh
cp %{SOURCE2} lowdown-term.sh
cp %{SOURCE3} cd-dot-dot.sh
%build
@@ -27,6 +29,7 @@ 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
install -p -m 755 -t %{buildroot}%{_sysconfdir}/profile.d cd-dot-dot.sh
%files
%{_sysconfdir}/profile.d
+1
View File
@@ -1 +1,2 @@
# Syntax highlighting less shortcut
alias lh='LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" less -RM '