dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 4458de8cbb2d56d3e84da86539fad335b5ba02c4
parent ed97f7d65248037fe1372d3da2db6a896cfdf802
Author: pyratebeard <root@pyratebeard.net>
Date:   Mon, 10 Jun 2024 21:42:25 +0100

chore(zsh): remove lab aliases, moved to scripts repo

Diffstat:
Mzsh/.config/zsh/aliases.zsh | 17++---------------
1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/zsh/.config/zsh/aliases.zsh b/zsh/.config/zsh/aliases.zsh @@ -188,7 +188,6 @@ command -v gmake >/dev/null && alias make='gmake' mixer="alsamixer" \ news="newsboat" \ gifview="gifview -a" \ - lab="ssh pigley 'pcs'" \ \ headsetbatt="bluetooth_battery 34:DF:2A:5F:04:2C" \ headset="echo 'connect 34:DF:2A:5F:04:2C' | bluetoothctl" \ @@ -249,27 +248,15 @@ command -v gmake >/dev/null && alias make='gmake' mkdir -p "$1" && cd "$1" } - labup() { - /usr/bin/wol 00:23:24:b3:03:cb - /usr/bin/wol 00:23:24:b5:75:61 - } - - labdown() { - ssh pigley 'for r in $(pcs resource --hide-inactive | awk "{print \$2}") ; do pcs resource disable --wait $r ; done' - for node in pigley goatley ; do - ssh $node "systemctl poweroff" - done - } - :q!() { [[ -v SSH_TTY ]] && echo dumpshock || { ping -q -c1 pigley >/dev/null 2>&1 && { echo -e "${red}lab still online${reset}" vared -p 'shutdown? [Y/n]: ' -c sdwn case ${sdwn} in - y|Y) labdown ;; + y|Y) lab down ;; n) ;; - *) labdown ;; + *) lab down ;; esac } || echo -e "${green}lab offline${reset}" rm -f /tmp/tmux.lock