mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-03 23:49:40 +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_extension.fish
Normal file
8
.config/fish/functions/file_extension.fish
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function file_extension --description Obtain\ file\'s\ extension
|
||||
if count $argv >/dev/null
|
||||
echo (basename $argv) | sed 's/.*\(\.[^.]*$\)/\1/'
|
||||
else
|
||||
echo "Please supply a path"
|
||||
return 1
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue