Add alias for yaml-cli

pull/270/head
Igor Zalatov (from Citadel PC) 2022-07-21 09:51:57 +03:00
parent bd975ce87c
commit e6875a14aa
1 changed files with 4 additions and 0 deletions

View File

@ -19,8 +19,12 @@ fi
export EDITOR='/bin/vi'
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
cli() { yaml-cli -i /etc/majestic.yaml $@ }
#[ -x /tmp/ipctool ] || ipctool() { [ -x /tmp/ipctool ] && /tmp/ipctool $@ || (curl -s -L -o /tmp/ipctool https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool-$(uname -m) && \
[ -x /tmp/ipctool ] || ipctool() { [ -x /tmp/ipctool ] && /tmp/ipctool $@ || (curl -s -L -o /tmp/ipctool https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool && \
chmod +x /tmp/ipctool && echo -e "\n\e[1;35mThe ipctool installed as remote GitHub plugin\e[0m\n" && /tmp/ipctool $@); }