Compare commits
2 Commits
2019-03-08
...
2019-03-09
Author | SHA1 | Date | |
---|---|---|---|
366601d014 | |||
6aa5024811 |
@ -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
|
||||
|
4
ddusb.py
4
ddusb.py
@ -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"
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user