Bladeren bron

meta: shellcheck all files

master
sentriz 10 maanden geleden
bovenliggende
commit
71a6eaf97b
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: 9A8DAE1CA907B862
5 gewijzigde bestanden met toevoegingen van 16 en 10 verwijderingen
  1. +5
    -3
      conf_common/bin/go-scrap-find
  2. +5
    -3
      conf_common/bin/py-scrap-find
  3. +3
    -3
      conf_extra/.local/share/qutebrowser/userscripts/transmission
  4. +2
    -0
      conf_extra/bin/dmenu/dmenu_emoji
  5. +1
    -1
      hooks/commit-msg

+ 5
- 3
conf_common/bin/go-scrap-find Bestand weergeven

@@ -1,7 +1,9 @@
#!/usr/bin/env bash

nvim "$(
IFS=$'\t' read -r path line_no < <(
rg -g '**/main.go' --line-number --no-heading --smart-case --color=never . "$DOTS_SCRAP_DIR" \
| fzf \
| sed -r 's/([^:]+)\:([0-9]+).*/+\2 \1/g'
)"
| sed -r 's/([^:]+)\:([0-9]+).*/\1\t\2/g'
)

nvim "$path" "+$line_no"

+ 5
- 3
conf_common/bin/py-scrap-find Bestand weergeven

@@ -1,7 +1,9 @@
#!/usr/bin/env bash

nvim "$(
IFS=$'\t' read -r path line_no < <(
rg -g '**/main.py' --line-number --no-heading --smart-case --color=never . "$DOTS_SCRAP_DIR" \
| fzf \
| sed -r 's/([^:]+)\:([0-9]+).*/+\2 \1/g'
)"
| sed -r 's/([^:]+)\:([0-9]+).*/\1\t\2/g'
)

nvim "$path" "+$line_no"

+ 3
- 3
conf_extra/.local/share/qutebrowser/userscripts/transmission Bestand weergeven

@@ -9,9 +9,9 @@ server="$1"
download_dir="$2"
link="$3"
notify_file="$(mktemp)"
username="$(secret transmission_${server}_username)"
password="$(secret transmission_${server}_password)"
url="$(secret transmission_${server}_rpc_url)"
username="$(secret transmission_"${server}"_username)"
password="$(secret transmission_"${server}"_password)"
url="$(secret transmission_"${server}"_rpc_url)"

notify() {
notify-send.sh --replace-file "$notify_file" "$@"


+ 2
- 0
conf_extra/bin/dmenu/dmenu_emoji Bestand weergeven

@@ -1,5 +1,7 @@
#!/usr/bin/env bash

# shellcheck disable=SC1111

# keep up to date with
# $ curl "https://raw.githubusercontent.com/Mange/rofi-emoji/master/all_emojis.txt" \
# | awk '{print $1 "\t" $2 "\t" $4}'


+ 1
- 1
hooks/commit-msg Bestand weergeven

@@ -3,7 +3,7 @@
message="$(head -n 1 "$1")"

if ! grep --extended-regexp --silent '^([0-9a-z_,]+\:|Merge|fixup\!)\s.*$' <<<"$message"; then
echo 'commit message must be in the format `<software>: <message>`' >&2
echo 'commit message must be in the format "<software>: <message>"' >&2
echo "rejecting message \`$message\`" >&2
exit 1
fi

Laden…
Annuleren
Opslaan