mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nix): ✨ mkOptions ✨
This commit is contained in:
parent
d98d30916b
commit
989d025f56
42 changed files with 80 additions and 78 deletions
6
nix/home/_/fish/functions/file_extension.fish
Normal file
6
nix/home/_/fish/functions/file_extension.fish
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
if count $argv >/dev/null
|
||||
echo (basename $argv) | sed 's/.*\(\.[^.]*$\)/\1/'
|
||||
else
|
||||
echo "Please supply a path"
|
||||
return 1
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue