2 Commits

4 changed files with 9 additions and 11 deletions

View File

@ -1,3 +1,4 @@
## File for excluding particular files from being written to
## Write one device per line, shell-style globs are accepted i.e. /dev/sda?
## Lines beginning with "#" and ";" are ignored
# File for excluding block devices from being written to
# Write one device per line, shell-style globs are accepted i.e. /dev/sda*
# Brace expansion is not supported
# Lines beginning with "#" and ";" are ignored

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3
"""Write an ISO image to a usb drive using dd."""
"""Wrapper script for using dd to write to a USB drive."""
import argparse
import glob
@ -8,7 +8,7 @@ import re
import subprocess
# ========== Constants ==========
COMMENT_PATTERN = "[#;]"
COMMENT_PATTERN = "^[#;]"
EXCLUDE_FILE = "/etc/helper-scripts/ddusb-exclude.conf"

View File

@ -1,13 +1,11 @@
# Fuzzy find a file and then edit it
_fedit() {
/usr/bin/fedit
zle reset-prompt
/usr/bin/fedit && zle reset-prompt
}
_etcedit() {
/usr/bin/fedit --etc
zle reset-prompt
/usr/bin/fedit --etc && zle reset-prompt
}
zle -N _fedit

View File

@ -1,7 +1,6 @@
# Fuzzy-find a file and open it in less
fless() {
/usr/bin/fless
zle reset-prompt
/usr/bin/fless && zle reset-prompt
}
zle -N fless