Initial commit
This commit is contained in:
commit
ea1ae29b95
2
bash-completion-ignore-case.sh
Normal file
2
bash-completion-ignore-case.sh
Normal file
@ -0,0 +1,2 @@
|
||||
set completion-ignore-case on
|
||||
|
17
colourprompt.sh
Normal file
17
colourprompt.sh
Normal 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
|
||||
|
||||
|
34
demus-profile-scripts.spec
Normal file
34
demus-profile-scripts.spec
Normal 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
1
less-syntax-highlight.sh
Normal file
@ -0,0 +1 @@
|
||||
alias leshi='LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" less -RM '
|
Loading…
Reference in New Issue
Block a user