Initial commit

This commit is contained in:
Daniel Demus 2025-01-02 19:21:30 +01:00
commit ea1ae29b95
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,2 @@
set completion-ignore-case on

17
colourprompt.sh Normal file
View File

@ -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

View File

@ -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 <daniel-rpms@demus.dk> 0.1
- First packing

1
less-syntax-highlight.sh Normal file
View File

@ -0,0 +1 @@
alias leshi='LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" less -RM '