mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
feat(function): auto append date when upload files
This commit is contained in:
parent
1bfda6c5bb
commit
621995cdfe
4 changed files with 24 additions and 2 deletions
8
.config/fish/functions/file_mantissa.fish
Normal file
8
.config/fish/functions/file_mantissa.fish
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function file_mantissa --description 'Obtain file name without extension'
|
||||
if count $argv >/dev/null
|
||||
echo (basename $argv) | sed 's/\.[^.]*$//'
|
||||
else
|
||||
echo "Please supply a path"
|
||||
return 1
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue