To get the same result as your command, it is the script filename you are looking for.
This information is not stored in a variable, but you get this by querying status
.
basename (status -f) # The name of the file
status -f # The full path of the file
More information: http://fishshell.com/docs/2.0/commands.html#status