1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-23 07:14:22 +00:00
config-fish/functions/stripbase.fish

7 lines
135 B
Fish
Raw Normal View History

2020-12-05 08:14:45 +00:00
function stripbase
for file in *
set truename (string split -m1 " " "$file")[2]
mv "$file" "$truename"
end
end