aboutsummaryrefslogtreecommitdiff
path: root/home/dot_local
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-08-12 19:27:30 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-08-12 19:27:30 +0200
commit58f7632fd838ba3a8d8590baa10128c2db44c9ad (patch)
treefac3169da62fc0987a2564b0b73c6b4fb6320b52 /home/dot_local
parent5533e947bbba56e1214b148b481dc214f401f09e (diff)
mac updates
Diffstat (limited to 'home/dot_local')
-rwxr-xr-xhome/dot_local/share/bin/executable_copy.tmpl6
-rw-r--r--home/dot_local/share/bin/executable_subrename2
2 files changed, 7 insertions, 1 deletions
diff --git a/home/dot_local/share/bin/executable_copy.tmpl b/home/dot_local/share/bin/executable_copy.tmpl
new file mode 100755
index 0000000..dde46b3
--- /dev/null
+++ b/home/dot_local/share/bin/executable_copy.tmpl
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+{{- if eq .chezmoi.os "darwin" }}
+exec pbcopy
+{{- else if eq .chezmoi.os "linux" }}
+exec xclip -selection clipboard -in
+{{- end }}
diff --git a/home/dot_local/share/bin/executable_subrename b/home/dot_local/share/bin/executable_subrename
index 16d913f..ea6e446 100644
--- a/home/dot_local/share/bin/executable_subrename
+++ b/home/dot_local/share/bin/executable_subrename
@@ -48,7 +48,7 @@ fi
for file in "$@" ; do
new_filename="$(printf 's%02de%02d%s\n' "$season" "$episode" "$file_extension")"
- mv --verbose "$file" "$new_filename"
+ mv -v "$file" "$new_filename"
episode=$(( $episode + 1 ))
done