summaryrefslogtreecommitdiff
path: root/config/essentials/shell
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-08-25 14:20:33 +0200
committerRaymaekers Luca <luca@spacehb.net>2025-08-25 14:20:33 +0200
commitc63087722d371a8ca30486351e193501116cbdc3 (patch)
treef98c1e562d067215dba5e985c4bcfd69842db5c4 /config/essentials/shell
parent5a5e53cd8d7af716bba3eb7984cc127b548bc9f7 (diff)
parent5cd2cef151c5aa8102ee4555a02634d911c0c9dc (diff)
Merge branch 'main' of autumn:dotfiles
Diffstat (limited to 'config/essentials/shell')
-rw-r--r--config/essentials/shell/aliases.sh1
-rw-r--r--config/essentials/shell/functions.sh16
2 files changed, 16 insertions, 1 deletions
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh
index fdbf850..b26128a 100644
--- a/config/essentials/shell/aliases.sh
+++ b/config/essentials/shell/aliases.sh
@@ -334,5 +334,4 @@ else
alias pkg_search_online='pacman -Ss'
alias pkg_install='doas pacman -S'
alias pkg_search_owned='pkgfile'
- alias
fi
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh
index 478ee26..ef745c9 100644
--- a/config/essentials/shell/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -408,3 +408,19 @@ trclipo()
transmission-remote autumn -a -w "/downloads/$choice" "$magnet"
}
+
+debinstall()
+{
+ if [ "$1" ]
+ then
+ ar p "$1" data.tar.xz |
+ tar -xv -J; find usr -type f |
+ while read -r file
+ do
+ >&2 printf 'cp %s /usr/local/%s\n' "$file" "${file#usr/}"
+ doas cp "$file" "/usr/local${file#usr}"
+ done
+ else
+ >&2 printf 'usage: %s <source.deb>\n' "$0"
+ fi
+}