zsh_tools.sh

first commit
This commit is contained in:
2019-12-21 18:11:39 +01:00
parent 93971dfa56
commit 65b568a2fa

29
zsh_tools.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
echo -e "\033[1mzsh Tools: \033[0m"
editeur=/usr/local/bin/bbedit
# 1: ~/.zshrc
# 2: ~/..zsh_plugins.txt
options=(
"(E)dit .zshrc"
"Edit .zsh_plugins.txt (P)"
"(S)ource .zshrc (reload)"
"(B)ackup .zshrc"
"(R)estore .zshrc"
"(Q)uit"
)
select option in "${options[@]}"; do
case "$REPLY" in
1|e|E) "$editeur" ~/.zshrc ;;
2|p|P) "$editeur" ~/.zsh_plugins.txt ;;
3|s|S) source ~/.zshrc ;;
4|b|B) scp ~/.zshrc funnymac@ftp.cluster011.ovh.net:www/backup ;;
5|r|R) curl http://clicclac.info/backup/.zshrc > ~/.zshrc && reload ;;
6|q|Q) break ;;
esac
done