30 lines
655 B
Bash
Executable File
30 lines
655 B
Bash
Executable File
#!/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
|