mirror of
https://github.com/gwebu-team/profile.d.git
synced 2025-12-09 12:05:46 +00:00
Add ssh control masters management aliases. Silence a which.
This commit is contained in:
parent
2cf378980a
commit
3df2a4eade
3 changed files with 26 additions and 2 deletions
9
etc/profile.d/ssh_controlmasters.sh
Executable file
9
etc/profile.d/ssh_controlmasters.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
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)'
|
||||
|
|
@ -6,7 +6,7 @@ fi
|
|||
# show hidden files and directories
|
||||
alias l.='ls -d .[^.]* ..?* --color=tty 2>/dev/null'
|
||||
|
||||
if ! which ll 2>/dev/null; then
|
||||
if ! which ll >/dev/null 2>&1; then
|
||||
alias ll='ls -l --color=auto'
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Summary: Gwebu profile.d - cool date, prompt with history, aliases
|
||||
Name: gwebu-profile
|
||||
Version: 1.0.2
|
||||
Release: 0
|
||||
Release: 5
|
||||
BuildArch: noarch
|
||||
License: GPLv2
|
||||
Source0: profile.d-%{version}-%{release}.tar.xz
|
||||
|
|
@ -41,6 +41,21 @@ install -m 0644 etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d/
|
|||
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
- Let's be MacOS compatible.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue