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
|
# File for excluding block devices from being written to
|
||||||
## Write one device per line, shell-style globs are accepted i.e. /dev/sda?
|
# Write one device per line, shell-style globs are accepted i.e. /dev/sda*
|
||||||
## Lines beginning with "#" and ";" are ignored
|
# Brace expansion is not supported
|
||||||
|
# Lines beginning with "#" and ";" are ignored
|
||||||
|
4
ddusb.py
4
ddusb.py
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python3
|
#!/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 argparse
|
||||||
import glob
|
import glob
|
||||||
@ -8,7 +8,7 @@ import re
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# ========== Constants ==========
|
# ========== Constants ==========
|
||||||
COMMENT_PATTERN = "[#;]"
|
COMMENT_PATTERN = "^[#;]"
|
||||||
EXCLUDE_FILE = "/etc/helper-scripts/ddusb-exclude.conf"
|
EXCLUDE_FILE = "/etc/helper-scripts/ddusb-exclude.conf"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
# Fuzzy find a file and then edit it
|
# Fuzzy find a file and then edit it
|
||||||
|
|
||||||
_fedit() {
|
_fedit() {
|
||||||
/usr/bin/fedit
|
/usr/bin/fedit && zle reset-prompt
|
||||||
zle reset-prompt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_etcedit() {
|
_etcedit() {
|
||||||
/usr/bin/fedit --etc
|
/usr/bin/fedit --etc && zle reset-prompt
|
||||||
zle reset-prompt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N _fedit
|
zle -N _fedit
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# Fuzzy-find a file and open it in less
|
# Fuzzy-find a file and open it in less
|
||||||
fless() {
|
fless() {
|
||||||
/usr/bin/fless
|
/usr/bin/fless && zle reset-prompt
|
||||||
zle reset-prompt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N fless
|
zle -N fless
|
||||||
|
Reference in New Issue
Block a user