Merge branch 'master' of git.opal.sh:opal/opalfiles
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#######################################################
|
||||
|
||||
setopt HIST_VERIFY # Confirm !! and similar before executing
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
export PATH="$PATH:$HOME/.local/bin"
|
||||
|
||||
@@ -110,6 +112,22 @@ alias ncmpcpp='ncmpcpp -b ~/.config/ncmpcpp/bindings'
|
||||
alias ll='ls -l --color=auto'
|
||||
alias la='ls -la --color=auto'
|
||||
|
||||
#######################################################
|
||||
# FUNCTIONS
|
||||
#######################################################
|
||||
|
||||
# Reset all USB devices after suspend/hibernate if they vanish
|
||||
usbreset() {
|
||||
echo "Re-authorizing all USB devices..."
|
||||
for d in /sys/bus/usb/devices/*/authorized; do
|
||||
if [[ -w $d ]]; then
|
||||
echo 0 | sudo tee "$d" >/dev/null
|
||||
echo 1 | sudo tee "$d" >/dev/null
|
||||
fi
|
||||
done
|
||||
echo "Done. Check with lsusb."
|
||||
}
|
||||
|
||||
#######################################################
|
||||
# KEYBINDS
|
||||
#######################################################
|
||||
|
||||
Reference in New Issue
Block a user