1
0
mirror of https://github.com/gryf/vmstrap.git synced 2025-12-18 03:50:31 +01:00

Added cleanup.sh

This commit is contained in:
2020-03-23 08:53:00 +01:00
parent 07e537f1db
commit 7da6ce0308
4 changed files with 11 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ cp .tmux.conf ~/
echo "bind -t vi-copy 'v' begin-selection" >> ~/.tmux.conf
echo "bind -t vi-copy 'y' copy-selection" >> ~/.tmux.conf
cp .gitconfig ~/
cp cleanup.sh ~/
echo '. ~/.bash_prompt' >> ~/.bashrc
# 8. get my vim config

View File

@@ -41,6 +41,7 @@ fi
sudo cp .bash_prompt ~/
sudo cp .tmux.conf ~/
sudo cp .gitconfig ~/
cp cleanup.sh ~/
echo '. ~/.bash_prompt' >> ~/.bashrc
# 7. get my vim config

View File

@@ -68,6 +68,7 @@ cp .tmux.conf ~/
echo "bind-key -T copy-mode-vi 'v' send -X begin-selection" >> ~/.tmux.conf
echo "bind-key -T copy-mode-vi 'y' send -X copy-selection" >> ~/.tmux.conf
cp .gitconfig ~/
cp cleanup.sh ~/
echo '. ~/.bash_prompt' >> ~/.bashrc
# 7. get my vim config

8
cleanup.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash -x
~/devstack/unstack.sh
for instance in `sudo virsh list --all --name`
do sudo virsh destroy $instance
sudo virsh undefine $instance
done
sudo umount `mount | grep kube | cut -d " " -f 3`
sudo rm -rf /var/lib/docker && sudo rm -rf /opt/stack/data