summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 14a35a9..6d84bf8 100644
--- a/.zshrc
+++ b/.zshrc
@@ -168,6 +168,12 @@ function suspend_after() {
systemctl suspend
}
+function reset_usb() {
+ for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do
+ echo "${i##*/}" | sudo tee "${i%/*}/"{unbind,bind}
+ done
+}
+
## PATH
export PATH=$PATH:$HOME/bin