aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-24 08:08:29 +0100
committerEgor Tensin <egor@tensin.name>2024-01-02 09:34:01 +0100
commit27d435632e7939f7f59cebc425f615a953c5d644 (patch)
tree73c5c4582e985a696246abedf6369597efb5b1cd /%HOME%
parentbash: enable autocd (diff)
downloadlinux-home-macos.tar.gz
linux-home-macos.zip
remove linux-only filesmacos
Diffstat (limited to '')
-rw-r--r--%HOME%/.config/apport/settings2
-rwxr-xr-x%HOME%/.local/bin/virsh-cleanup.sh83
-rw-r--r--%HOME%/.minttyrc23
3 files changed, 0 insertions, 108 deletions
diff --git a/%HOME%/.config/apport/settings b/%HOME%/.config/apport/settings
deleted file mode 100644
index 4f12954..0000000
--- a/%HOME%/.config/apport/settings
+++ /dev/null
@@ -1,2 +0,0 @@
-[main]
-unpackaged=true
diff --git a/%HOME%/.local/bin/virsh-cleanup.sh b/%HOME%/.local/bin/virsh-cleanup.sh
deleted file mode 100755
index b0653f9..0000000
--- a/%HOME%/.local/bin/virsh-cleanup.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (c) 2022 Egor Tensin <egor@tensin.name>
-# This file is part of the "linux-home" project.
-# For details, see https://github.com/egor-tensin/linux-home.
-# Distributed under the MIT License.
-
-# This script destroys all libvirt resources.
-
-set -o errexit -o nounset -o pipefail
-shopt -s inherit_errexit lastpipe
-
-CONNECT="${CONNECT:=qemu:///system}"
-POOL="${POOL:=default}"
-
-dump() {
- local prefix="${FUNCNAME[0]}"
- [ "${#FUNCNAME[@]}" -gt 1 ] && prefix="${FUNCNAME[1]}"
-
- local msg
- for msg; do
- echo "$prefix: $msg"
- done
-}
-
-run_virsh() {
- virsh -q -c "$CONNECT" "$@"
-}
-
-list_domains() {
- run_virsh list --all --name
-}
-
-list_networks() {
- local name
- run_virsh net-list --all --name | while IFS= read -r name; do
- [ "$name" = default ] && continue
- echo "$name"
- done
-}
-
-list_volumes() {
- local name
- run_virsh vol-list "$POOL" | tr -s ' ' | while IFS=' ' read -r name _; do
- echo "$name"
- done
-}
-
-remove_domain() {
- local domain
- for domain; do
- dump "$domain"
- run_virsh destroy "$domain"
- run_virsh undefine "$domain"
- done
-}
-
-remove_network() {
- local network
- for network; do
- dump "$network"
- run_virsh net-destroy "$network"
- run_virsh net-undefine "$network"
- done
-}
-
-remove_volume() {
- local volume
- for volume; do
- dump "$volume"
- run_virsh vol-delete --pool "$POOL" "$volume"
- done
-}
-
-main() {
- local item
-
- list_domains | while IFS= read -r item; do remove_domain "$item"; done
- list_volumes | while IFS= read -r item; do remove_volume "$item"; done
- list_networks | while IFS= read -r item; do remove_network "$item"; done
-}
-
-main
diff --git a/%HOME%/.minttyrc b/%HOME%/.minttyrc
deleted file mode 100644
index 43fd612..0000000
--- a/%HOME%/.minttyrc
+++ /dev/null
@@ -1,23 +0,0 @@
-BoldAsFont=no
-Font=Consolas
-FontHeight=11
-Rows=25
-ScrollbackLines=9000
-BackgroundColour=30,30,30
-CursorColour=210,210,210
-Black=30,30,30
-BoldBlack=30,30,30
-Red=210,120,120
-BoldRed=210,120,120
-Green=120,210,120
-BoldGreen=120,210,120
-Yellow=210,210,120
-BoldYellow=210,210,120
-Blue=120,165,210
-BoldBlue=120,165,210
-Magenta=240,90,165
-BoldMagenta=240,90,165
-Cyan=90,210,210
-BoldCyan=90,210,210
-White=210,210,210
-BoldWhite=210,210,210