4 Commits

Author SHA1 Message Date
Eric Torres
4d7719af2c Use shutil to find fd bin on system path 2020-06-23 22:47:08 -07:00
Eric Torres
6b595f44a3 Use env to account for PATH interpreter precedence 2020-06-22 11:21:19 -07:00
Eric Torres
144190b1c9 Revert "Change interpreter from #!/usr/bin/bash to #!/bin/bash"
This reverts commit 9c776c3400.
2020-06-22 11:17:29 -07:00
Eric Torres
bd729e5372 Ignore homebrew package file 2020-06-22 11:16:51 -07:00
12 changed files with 13 additions and 12 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
*.pkg.tar.xz*
helper-scripts
helper-scripts.rb
helper-scripts.spec
PKGBUILD
pkg

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copy a file from ~/Templates to a given name
#
# Dependencies:

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
"""Wrapper script for using dd to write to a USB drive."""
import argparse

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
"""Check the temperature of a drive.
Functions:
verify_device_node(query)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
"""
Fuzzy-find a file and edit it.

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# fless - fuzzy find a file and run less on it
# Dependencies
# - fd (soft)

2
gek.sh
View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Export a key to a given keyfile
echo -n "Enter the name of the output file: "

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
"""Obtain a weather forecast."""
import argparse

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# List all groups in the system
sort <(awk -F ':' '{print $1}' < /etc/group)

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# List all users on the system
sort --unique <(awk -F ':' '{print $1}' < /etc/passwd)

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# open - fuzzy find, select, and open a file using xdg-open
#
# Dependencies:

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
"""
quickdel - delete any file matching a query
@@ -30,7 +30,7 @@ import subprocess
from termcolor import colored
# ========== Constants ==========
FD_BIN = "/usr/bin/fd"
FD_BIN = shutil.which("fd")
FD_OPTS = ["--hidden"]
# Matches 'y' or 'yes' only, ignoring case
USER_RESPONSE_YES = r"^[Yy]{1}([Ee]{1}[Ss]{1})?$"