zsh_tools.sh
first commit
This commit is contained in:
29
zsh_tools.sh
Executable file
29
zsh_tools.sh
Executable 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
|
||||
Reference in New Issue
Block a user