AutoYADM commit: 2025-03-26 18:30:07

This commit is contained in:
Daniel Fichtinger 2025-03-26 18:30:07 -04:00
parent 9ae5d4da09
commit de93c67826
3 changed files with 14 additions and 0 deletions

View file

@ -17,3 +17,8 @@
Tag = ["python", "scratch"]
command = "rm -f /tmp/tmp.*.py"
[[Snippets]]
Description = "Rename"
Output = ""
Tag = []
command = "mv <from> \"${$(realpath <from>)%%$(basename <from>)}<to>\""

8
.zsh/functions/ren Normal file
View file

@ -0,0 +1,8 @@
#!/bin/env zsh
function ren {
from="$1"
to="$2"
DIR="${$(realpath "$from")%%$(basename "$from")}"
# echo "$DIR"
echo "$(realpath "$from")" "$DIR$to"
}

1
.zshrc
View file

@ -126,6 +126,7 @@ export PATH="$PATH:/home/fic/.luarocks/bin"
export PATH="$PATH:/home/fic/.local/share/npm/bin"
fpath=(~/.zsh/functions $fpath)
autoload -Uz syncthing_menu
autoload -Uz ren
# fpath=(~/.zsh.d/ $fpath)
function noh() {
nohup "$@" >/dev/null 2>&1 &