Initial commit

This commit is contained in:
2019-10-25 17:08:00 +02:00
commit dc0dcecdce
5 changed files with 266 additions and 0 deletions

28
bash_tools.sh Executable file
View File

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