8 Commits

16 changed files with 12 additions and 63 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 @@
#!/usr/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 @@
#!/usr/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 @@
#!/usr/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 @@
#!/usr/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 @@
#!/usr/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 @@
#!/usr/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

View File

@ -1,22 +0,0 @@
# Fuzzy cd from anywhere
# Dependencies
# * fzf
# * mlocate
# ========== Shortcuts ==========
cf() {
[[ -z "${*}" ]] && return 1
[[ ! -x /usr/bin/fzf ]] && return 1
dir="$(locate --all --ignore-case --null -- "${@}" | fzf --read0 --select-1 --exit-0)"
[[ -z "${dir}" ]] && return 1
if [[ -f "${dir}" ]]; then
cd "${dir%/*}"
else
cd "${dir}"
fi
}
autoload -Uz cf

View File

@ -1,15 +0,0 @@
# Fuzzy find a file and then edit it
_fedit() {
fedit && zle reset-prompt
}
_etcedit() {
fedit --etc && zle reset-prompt
}
zle -N _fedit
bindkey -M viins '^o' _fedit
zle -N _etcedit
bindkey -M viins '^e' _etcedit

View File

@ -1,7 +0,0 @@
# Fuzzy-find a file and open it in less
fless() {
/usr/bin/fless && zle reset-prompt
}
zle -N fless
bindkey -M viins '^n' fless

View File

@ -1,8 +0,0 @@
# Make a directory, then change into it
mkcd() {
[[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
cd "${1}" || exit
}
autoload -Uz mkcd