Compare commits

..

No commits in common. "45d926a3a91256d608638ebcd71656e41f3a922c" and "2cf378980abecad7d991e02ea0a319ee83fad15d" have entirely different histories.

5 changed files with 3 additions and 53 deletions

View file

@ -2,17 +2,3 @@
This is a collection of /etc/profile.d files used by the gwebu team. This is a collection of /etc/profile.d files used by the gwebu team.
Unless explicitly stated in the file itself, the license is [The Unlicense](https://choosealicense.com/licenses/unlicense/). Unless explicitly stated in the file itself, the license is [The Unlicense](https://choosealicense.com/licenses/unlicense/).
## Hooks
Create the following hook in your local repository to update the RPM changelog for you:
```bash
echo '#!/usr/bin/env bash
set -eu
./changelog.sh' > .git/hooks/post-commit
chmod a+x .git/hooks/post-commit
```

View file

@ -1,7 +1,4 @@
#!/usr/bin/env bash #!/bin/bash
set -euo pipefail
shopt -s nullglob dotglob
ver=$(git describe --dirty --long --match='v[0-9]*.[0-9]*' | cut -c 2- | cut -d - -f 1,2,4) ver=$(git describe --dirty --long --match='v[0-9]*.[0-9]*' | cut -c 2- | cut -d - -f 1,2,4)
rpm_ver="${ver%%-*}" rpm_ver="${ver%%-*}"
@ -17,7 +14,3 @@ awk -v change="${change}" '/^%changelog/ {print; print change; next} 1' gwebu-pr
sed -i "s/Version: .*/Version: ${rpm_ver}/" gwebu-profile.spec.in sed -i "s/Version: .*/Version: ${rpm_ver}/" gwebu-profile.spec.in
sed -i "s/Release: .*/Release: ${rpm_numeric_rev}/" gwebu-profile.spec.in sed -i "s/Release: .*/Release: ${rpm_numeric_rev}/" gwebu-profile.spec.in
git add gwebu-profile.spec.in
echo "gwebu-profile.spec.in changelog updated"

View file

@ -1,9 +0,0 @@
if [ "${BASH_SOURCE-}" = "$0" ]; then
echo -e "You must source this script:\n\tsource $0" >&2
exit 33
fi
# SSH Control Masters tools (setup controlmasters to be in ~/.ssh/controlmasters).
alias ssh_controlmasters_ls='(cd ~/.ssh/controlmasters; ls -A 2>/dev/null || echo "-- No control masters --")'
alias ssh_controlmasters_check='(cd ~/.ssh/controlmasters; [ "$(ls -A)" ] && for i in *; do echo -n "$i: "; ssh -O check "${i%:*}" -p "${i##*:}"; done)'
alias ssh_controlmasters_stop='(cd ~/.ssh/controlmasters; [ "$(ls -A)" ] && for i in *; do echo -n "$i: "; ssh -O stop "${i%:*}" -p "${i##*:}"; done)'

View file

@ -6,7 +6,7 @@ fi
# show hidden files and directories # show hidden files and directories
alias l.='ls -d .[^.]* ..?* --color=tty 2>/dev/null' alias l.='ls -d .[^.]* ..?* --color=tty 2>/dev/null'
if ! which ll >/dev/null 2>&1; then if ! which ll 2>/dev/null; then
alias ll='ls -l --color=auto' alias ll='ls -l --color=auto'
fi fi

View file

@ -1,7 +1,7 @@
Summary: Gwebu profile.d - cool date, prompt with history, aliases Summary: Gwebu profile.d - cool date, prompt with history, aliases
Name: gwebu-profile Name: gwebu-profile
Version: 1.0.2 Version: 1.0.2
Release: 6 Release: 0
BuildArch: noarch BuildArch: noarch
License: GPLv2 License: GPLv2
Source0: profile.d-%{version}-%{release}.tar.xz Source0: profile.d-%{version}-%{release}.tar.xz
@ -41,26 +41,6 @@ install -m 0644 etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d/
%changelog %changelog
* Thu May 30 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-6
- New shebang for changelog.sh, post-commit hook in README.md.
* Thu May 30 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-6
* Thu May 30 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-5
- Add ssh control masters management aliases. Silence a which.
* Thu May 30 2024 Jorge Stefanov <georgi.stefanov@flyrlabs.com> - 1.0.2-4
- adjusted time format for lll
* Tue May 14 2024 Doncho Gunchev <doncho.gunchev@flyrlabs.com> - 1.0.2-3
- Fix lll on MacOS.
* Tue May 14 2024 Doncho Gunchev <doncho.gunchev@flyrlabs.com> - 1.0.2-2
- Add ls aliases for MacOS (ll, lll).
* Fri Apr 26 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-1
- Don't add ip aliases on MacOS.
* Fri Apr 26 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-0 * Fri Apr 26 2024 Doncho N. Gunchev <dgunchev@gmail.com> - 1.0.2-0
- Let's be MacOS compatible. - Let's be MacOS compatible.