config-fish/functions/__fishline_version.fish

13 lines
234 B
Fish
Raw Normal View History

2022-04-22 14:15:09 +00:00
#!/usr/bin/env fish
# -*- mode:fish; tab-width:4 -*-
function __fishline_version
pushd $FLINE_PATH > /dev/null
set -l fline_version (git describe --tag)
popd > /dev/null
printf "fishline %s\n" $fline_version
end