mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
ref(fish): cleanup
This commit is contained in:
parent
0462bbfd48
commit
aee51d2d13
6 changed files with 4 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
function file_extension --description Obtain\ file\'s\ extension
|
||||
if count $argv >/dev/null
|
||||
echo (basename $argv) | sed 's/.*\(\.[^.]*$\)/\1/'
|
||||
else
|
||||
else
|
||||
echo "Please supply a path"
|
||||
return 1
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue