commit ea1ae29b951e7871e02e01dfc0c326cc6e990181 Author: Daniel Demus Date: Thu Jan 2 19:21:30 2025 +0100 Initial commit diff --git a/bash-completion-ignore-case.sh b/bash-completion-ignore-case.sh new file mode 100644 index 0000000..3942516 --- /dev/null +++ b/bash-completion-ignore-case.sh @@ -0,0 +1,2 @@ +set completion-ignore-case on + diff --git a/colourprompt.sh b/colourprompt.sh new file mode 100644 index 0000000..1352265 --- /dev/null +++ b/colourprompt.sh @@ -0,0 +1,17 @@ +if [ "$PS1" ]; then + if [ "$BASH" ]; then + if [ "`id -u`" -eq 0 ]; then + PS1='\[\033[01;31m\]\u\[\033[34m\]@\h\[\033[00m\] \[\033[01;35m\]\W\[\033[00m\] # ' + else + PS1='\[\033[01;32m\]\u\[\033[34m\]@\h\[\033[00m\] \[\033[01;35m\]\W\[\033[00m\] \\$ ' + fi + else + if [ "`id -u`" -eq 0 ]; then + PS1='# ' + else + PS1='$ ' + fi + fi +fi + + diff --git a/demus-profile-scripts.spec b/demus-profile-scripts.spec new file mode 100644 index 0000000..f126bae --- /dev/null +++ b/demus-profile-scripts.spec @@ -0,0 +1,34 @@ +Name: demus-profile-scripts +Version: 0.1 +Release: 0%{?dist} +Summary: Bash profile customisations + +License: GPL3 +Source0: %{name}-%{version}.tar.xz + +Requires: bash + +BuildArch: noarch + +%description +Some bash customizations + +%prep +%setup -q + + +%build + + +%install +mkdir -p %{buildroot}%{_sysconfdir}/profile.d +install -p -m 755 -t %{buildroot}%{_sysconfdir}/profile.d * + + +%files +%{_sysconfdir}/profile.d + + +%changelog +* Sun May 7 2017 Daniel Demus 0.1 +- First packing diff --git a/less-syntax-highlight.sh b/less-syntax-highlight.sh new file mode 100644 index 0000000..194d8d2 --- /dev/null +++ b/less-syntax-highlight.sh @@ -0,0 +1 @@ +alias leshi='LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" less -RM '