AutoYADM commit: 2025-03-26 18:30:07
This commit is contained in:
parent
9ae5d4da09
commit
de93c67826
3 changed files with 14 additions and 0 deletions
|
@ -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
8
.zsh/functions/ren
Normal 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
1
.zshrc
|
@ -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 &
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue